home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / pc / Open Me for REALbasic 3 / REALbasic 3.2 / Goodies / Development Tools / XCMDs and XFCNs / File and Resource / BasicDB XCMDs 1.1 / cards.xml < prev    next >
Encoding:
Text File  |  1995-06-30  |  73.4 KB  |  2,195 lines

  1. card_6688.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>6688</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>3062</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3204.css" />
  12.     <part>
  13.         <id>6</id>
  14.         <type>button</type>
  15.         <visible> <true /> </visible>
  16.         <reserved5> 0 </reserved5>
  17.         <reserved4> 0 </reserved4>
  18.         <reserved3> 0 </reserved3>
  19.         <reserved2> 0 </reserved2>
  20.         <reserved1> 0 </reserved1>
  21.         <enabled> <true /> </enabled>
  22.         <rect>
  23.             <left>14</left>
  24.             <top>52</top>
  25.             <right>505</right>
  26.             <bottom>331</bottom>
  27.         </rect>
  28.         <style>shadow</style>
  29.         <showName> <false /> </showName>
  30.         <highlight> <false /> </highlight>
  31.         <autoHighlight> <false /> </autoHighlight>
  32.         <sharedHighlight> <true /> </sharedHighlight>
  33.         <family>0</family>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>center</textAlign>
  37.         <font>Geneva</font>
  38.         <textSize>9</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <name>BG</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>1</id>
  45.         <type>field</type>
  46.         <visible> <true /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <true /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <true /> </lockText>
  53.         <rect>
  54.             <left>14</left>
  55.             <top>52</top>
  56.             <right>504</right>
  57.             <bottom>330</bottom>
  58.         </rect>
  59.         <style>scrolling</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <false /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>left</textAlign>
  68.         <font>Geneva</font>
  69.         <textSize>9</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <textHeight>12</textHeight>
  72.         <name>Description</name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>5</id>
  77.         <type>field</type>
  78.         <visible> <false /> </visible>
  79.         <dontWrap> <false /> </dontWrap>
  80.         <dontSearch> <true /> </dontSearch>
  81.         <sharedText> <false /> </sharedText>
  82.         <fixedLineHeight> <true /> </fixedLineHeight>
  83.         <autoTab> <false /> </autoTab>
  84.         <lockText> <false /> </lockText>
  85.         <rect>
  86.             <left>78</left>
  87.             <top>79</top>
  88.             <right>434</right>
  89.             <bottom>229</bottom>
  90.         </rect>
  91.         <style>shadow</style>
  92.         <autoSelect> <false /> </autoSelect>
  93.         <showLines> <false /> </showLines>
  94.         <wideMargins> <true /> </wideMargins>
  95.         <multipleLines> <false /> </multipleLines>
  96.         <reservedFamily> 0 </reservedFamily>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>left</textAlign>
  100.         <font>Geneva</font>
  101.         <textSize>9</textSize>
  102.         <textStyle>italic</textStyle>
  103.         <textHeight>12</textHeight>
  104.         <name>Credits</name>
  105.         <script>on mouseUp
  106. lock screen
  107. hide me
  108. hide cd btn "Credits ICON"
  109. unlock screen with visual effect dissolve fast
  110. pass mouseUp
  111. end mouseUp</script>
  112.     </part>
  113.     <part>
  114.         <id>2</id>
  115.         <type>button</type>
  116.         <visible> <false /> </visible>
  117.         <reserved5> 0 </reserved5>
  118.         <reserved4> 0 </reserved4>
  119.         <reserved3> 0 </reserved3>
  120.         <reserved2> 0 </reserved2>
  121.         <reserved1> 0 </reserved1>
  122.         <enabled> <true /> </enabled>
  123.         <rect>
  124.             <left>331</left>
  125.             <top>154</top>
  126.             <right>376</right>
  127.             <bottom>190</bottom>
  128.         </rect>
  129.         <style>transparent</style>
  130.         <showName> <false /> </showName>
  131.         <highlight> <false /> </highlight>
  132.         <autoHighlight> <false /> </autoHighlight>
  133.         <sharedHighlight> <true /> </sharedHighlight>
  134.         <family>0</family>
  135.         <titleWidth>0</titleWidth>
  136.         <icon>6002</icon>
  137.         <textAlign>center</textAlign>
  138.         <font>Chicago</font>
  139.         <textSize>12</textSize>
  140.         <textStyle>plain</textStyle>
  141.         <name>Credits ICON</name>
  142.         <script>on mouseUp
  143. hide me
  144. hide cd fld "Credits"
  145. pass mouseUp
  146. end mouseUp
  147. </script>
  148.     </part>
  149.     <part>
  150.         <id>3</id>
  151.         <type>button</type>
  152.         <visible> <true /> </visible>
  153.         <reserved5> 0 </reserved5>
  154.         <reserved4> 0 </reserved4>
  155.         <reserved3> 0 </reserved3>
  156.         <reserved2> 0 </reserved2>
  157.         <reserved1> 0 </reserved1>
  158.         <enabled> <true /> </enabled>
  159.         <rect>
  160.             <left>471</left>
  161.             <top>0</top>
  162.             <right>512</right>
  163.             <bottom>42</bottom>
  164.         </rect>
  165.         <style>transparent</style>
  166.         <showName> <true /> </showName>
  167.         <highlight> <false /> </highlight>
  168.         <autoHighlight> <true /> </autoHighlight>
  169.         <sharedHighlight> <true /> </sharedHighlight>
  170.         <family>0</family>
  171.         <titleWidth>0</titleWidth>
  172.         <icon>19678</icon>
  173.         <textAlign>center</textAlign>
  174.         <font>Chicago</font>
  175.         <textSize>12</textSize>
  176.         <textStyle>plain</textStyle>
  177.         <name>About</name>
  178.         <script>on mouseUp
  179. set cantAbort of this stack to true
  180. lock screen
  181. show cd fld "Credits"
  182. show cd btn "Credits ICON"
  183. unlock screen with visual effect iris open fast
  184. wait until the mouseclick
  185. lock screen
  186. hide cd btn "Credits ICON"
  187. hide cd fld "Credits"
  188. unlock screen with visual effect dissolve fast
  189. set cantAbort of this stack to false
  190.  
  191. pass mouseUp
  192. end mouseUp</script>
  193.     </part>
  194.     <part>
  195.         <id>8</id>
  196.         <type>button</type>
  197.         <visible> <true /> </visible>
  198.         <reserved5> 0 </reserved5>
  199.         <reserved4> 0 </reserved4>
  200.         <reserved3> 0 </reserved3>
  201.         <reserved2> 0 </reserved2>
  202.         <reserved1> 0 </reserved1>
  203.         <enabled> <true /> </enabled>
  204.         <rect>
  205.             <left>133</left>
  206.             <top>8</top>
  207.             <right>377</right>
  208.             <bottom>34</bottom>
  209.         </rect>
  210.         <style>transparent</style>
  211.         <showName> <true /> </showName>
  212.         <highlight> <false /> </highlight>
  213.         <autoHighlight> <false /> </autoHighlight>
  214.         <sharedHighlight> <true /> </sharedHighlight>
  215.         <family>0</family>
  216.         <titleWidth>0</titleWidth>
  217.         <icon>0</icon>
  218.         <textAlign>center</textAlign>
  219.         <font>Helvetica</font>
  220.         <textSize>18</textSize>
  221.         <textStyle>bold</textStyle>
  222.         <name>BasicDB Database XCMDs</name>
  223.         <script></script>
  224.     </part>
  225.     <content>
  226.         <layer>card</layer>
  227.         <id>1</id>
  228.         <text><span class="style1"> </span><span class="style4">For purposes of explaining BasicDB, a HyperCard environment will be assumed. However, the externals should work anywhere the basic XCMD interface is supported. See Tech Notes at the end for an explanation/exceptions.</span><span class="style1">
  229.  
  230.    BasicDB is a set of externals that implements a simple database file system. BasicDB is just that, basic. It is intended for those developers that do not want to store their data inside of HyperCard fields inside of stacks, but do not need any of the fancy relational or other features of higher end systems.
  231.  A BasicDB file can contain any number of records. Each record, however, has a fixed structure of the following:
  232. 1. A Numeric key
  233. 2. A String key
  234. 3. Text data
  235. 4. Item ID
  236.  
  237. </span><span class="style5">Record Structure Description:</span><span class="style1">
  238. 1. The numeric key is a 32 bit long integer. When this value is to be converted to a string and returned, it will always be converted as an unsigned long integer. It can be passed in as a negative number in any of the searching or new item routines and everything will be work as planned (32 bits is 32 bits is 32 bits) Therefore if you want to have negative numbers, you will have to convert them manually. I have my reasons for this. If you find this situation intolerable, then let me know and I'll take a look at doing something about it.
  239. 2. The String key has a maximum of 63 characters.
  240. 3. The Text Data item: You may store as much data as you want in this field (up to 2GB). Much more than the 30,000 character limit on text inside of a field that HyperCard imposes. The only limit is that you must have enough available RAM within HyperCard to read and write the data.
  241. 4. The Item ID is a totally unique value and is completely controlled by the system.
  242.  
  243.   BasicDB does not have any indexing or anything fancy. It does have searching. You can search for an equality on the numeric key or the string key or a "contains" search on the text data. See the BasicDBFindItem XFCN description.
  244.   If you want your numeric or string keys to be constricted to unique values then you have to program that into your own code.
  245.  
  246.  
  247. </span><span class="style5">Usage:</span><span class="style1">
  248.   In all of the calls to any BasicDB external, the first parameter will always be the full path of the database file. BasicDB will open and close the file each time you perform an operation. BasicDB does not require any stored global values that must be initialized before working with a database file or deinitialized when finished. 
  249.  
  250. </span><span class="style5">Demo Notes:</span><span class="style1">
  251.   This demo is limited in that 14 days after a database file is created, the database will essentially become "locked." The externals which </span><span class="style5">change</span><span class="style1"> the data items in that database file will return an error message that the file has expired. The externals which simply read the database file in any manner will continue to function. The only deviation from this scheme is that you can Compact a database file.
  252.  
  253.   If you wish to purchase BasicDB in its full form with technical support by email, then send me an e-mail at any of the addresses in the about box and I will give you details on how to make payment. After I receive payment I will either send you the full version by e-mail or snail-mail.
  254.  
  255. </span><span class="style5">Tech Notes:
  256. </span><span class="style1">  1. Yes, I know opening and closing the file every time incurs a speed penalty, but that was not my primary intention in creating this system. My first priority was in getting the data I was storing in HyperCard fields out of HyperCard. I also make a PBFlushFile call every time the file is changed!!! So sue me!!!
  257.   2. The BasicDBFindItem XFCN uses a single binary callback asking HyperCard to perform a string match operation. This occurs only if you perform a "data" search. (See BasicDBFindItem for details on types of searches) If the environment that you want to use BasicDB in does not support this callback then doing this type of search will most likely crash your application. I might remove this callback at a later date.
  258.   3. Actually, I lied, the BasicDBGetIndex XFCN also makes a binary callback to convert the numeric key into a string. That callback converts it as an unsigned long integer.
  259.   4. The external's error messages are kept in a "STR#" resource that must accompany the externals.
  260.  
  261.  
  262. </span><span class="style5">Items To Consider For Future Versions:</span><span class="style1">
  263. 1. Sorting external.
  264. 2. GetDBInfo external that reports the amount of free space in the file or other tidbits.
  265. 3. SetKey external.
  266. 4. Support for signed numeric keys. I might make this an option in the appropriate externals or make it an attribute of a particular database file.
  267.  
  268.  
  269. </span><span class="style5">Release History</span><span class="style1">
  270. 1.1 - 7/1/1995
  271. ‚Ä¢ Expanded the string key for each database item from 31 characters to 63 characters. This change will make BasicDB 1.0 files incompatible with 1.1 files. You must reload your data through some sort of scripting. I'm sorry about this change, but it was necessary for my project. I'm also sorry that there is no conversion external.
  272. ‚Ä¢ Modified the return value of BasicDBNewItem to return the same full line of data that is returned by the GetIndex call. This will help in maintaining external indexes.
  273. ‚Ä¢ Added user stored long integer and Str127 to the header block. Also created appropriate externals to get/set these values.
  274. ‚Ä¢ Added field to the header block that is the last time that the database was compacted.
  275. ‚Ä¢ Changed all the FlushVol calls to PBFlushFile. Should improve performance a bit.
  276. ‚Ä¢ Created a BasicDBVerify external to check the integrity of the database.
  277. ‚Ä¢ Changed the error string handling to look for the STR# resource by name instead of ID.
  278.  
  279. 1.0 - 5/3/1995
  280. ‚Ä¢ First Release</span></text>
  281.     </content>
  282.     <content>
  283.         <layer>card</layer>
  284.         <id>5</id>
  285.         <text><span class="style1"> This stack and external(s) were created by Brian Blood using CompileIt! 2.6.1.
  286.  
  287.   If you have any questions, comments, suggestions, and/or bug reports, please contact me at any of the following addresses: 
  288.  
  289. AOL: Maveric9             eWorld: Maverick
  290. Compuserve: 72540,1771                                                          </span><span class="style6">Howdy!</span><span class="style1">
  291. Internet: Maveric9@aol.com
  292.  
  293.           This stack/external ¬©1995 by Brian Blood. All Rights Reserved.</span></text>
  294.     </content>
  295.     <name></name>
  296.     <script></script>
  297. </card>
  298.  
  299.  
  300. card_2768.xml
  301. <?xml version="1.0" encoding="utf-8" ?>
  302. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  303. <card>
  304.     <id>2768</id>
  305.     <filler1>0</filler1>
  306.     <cantDelete> <false /> </cantDelete>
  307.     <showPict> <true /> </showPict>
  308.     <dontSearch> <false /> </dontSearch>
  309.     <owner>5207</owner>
  310.     <link rel="stylesheet" type="text/css" href="stylesheet_3204.css" />
  311.     <part>
  312.         <id>3</id>
  313.         <type>button</type>
  314.         <visible> <true /> </visible>
  315.         <reserved5> 0 </reserved5>
  316.         <reserved4> 0 </reserved4>
  317.         <reserved3> 0 </reserved3>
  318.         <reserved2> 0 </reserved2>
  319.         <reserved1> 0 </reserved1>
  320.         <enabled> <true /> </enabled>
  321.         <rect>
  322.             <left>15</left>
  323.             <top>238</top>
  324.             <right>74</right>
  325.             <bottom>260</bottom>
  326.         </rect>
  327.         <style>roundrect</style>
  328.         <showName> <true /> </showName>
  329.         <highlight> <false /> </highlight>
  330.         <autoHighlight> <true /> </autoHighlight>
  331.         <sharedHighlight> <true /> </sharedHighlight>
  332.         <family>0</family>
  333.         <titleWidth>0</titleWidth>
  334.         <icon>0</icon>
  335.         <textAlign>center</textAlign>
  336.         <font>Geneva</font>
  337.         <textSize>9</textSize>
  338.         <textStyle>plain</textStyle>
  339.         <name>Create File</name>
  340.         <script>on mouseUp
  341. set cursor to watch
  342.  
  343. put bg fld "DB File" into dbFile
  344. put cd fld "Global Long" into globalLong
  345. put cd fld "Global String" into globalString
  346. put the ticks into timeA
  347. BasicDBCreate dbFile, globalLong, globalString
  348. put the result into theResult
  349. put the ticks into timeB
  350. if theResult‚â†empty then answer theResult
  351. put timeB-timeA into bg fld "Access Time"
  352.  
  353. pass mouseUp
  354. end mouseUp</script>
  355.     </part>
  356.     <part>
  357.         <id>4</id>
  358.         <type>button</type>
  359.         <visible> <true /> </visible>
  360.         <reserved5> 0 </reserved5>
  361.         <reserved4> 0 </reserved4>
  362.         <reserved3> 0 </reserved3>
  363.         <reserved2> 0 </reserved2>
  364.         <reserved1> 0 </reserved1>
  365.         <enabled> <true /> </enabled>
  366.         <rect>
  367.             <left>14</left>
  368.             <top>189</top>
  369.             <right>90</right>
  370.             <bottom>211</bottom>
  371.         </rect>
  372.         <style>roundrect</style>
  373.         <showName> <true /> </showName>
  374.         <highlight> <false /> </highlight>
  375.         <autoHighlight> <true /> </autoHighlight>
  376.         <sharedHighlight> <true /> </sharedHighlight>
  377.         <family>0</family>
  378.         <titleWidth>0</titleWidth>
  379.         <icon>0</icon>
  380.         <textAlign>center</textAlign>
  381.         <font>Geneva</font>
  382.         <textSize>9</textSize>
  383.         <textStyle>plain</textStyle>
  384.         <name>Set DB File:</name>
  385.         <script>on mouseUp
  386. ask file "Set DB File to:" with "BasicDB Test File"
  387. if it‚â†empty then put it into bg fld "DB File"
  388.  
  389. pass mouseUp
  390. end mouseUp</script>
  391.     </part>
  392.     <part>
  393.         <id>5</id>
  394.         <type>button</type>
  395.         <visible> <true /> </visible>
  396.         <reserved5> 0 </reserved5>
  397.         <reserved4> 0 </reserved4>
  398.         <reserved3> 0 </reserved3>
  399.         <reserved2> 0 </reserved2>
  400.         <reserved1> 0 </reserved1>
  401.         <enabled> <true /> </enabled>
  402.         <rect>
  403.             <left>105</left>
  404.             <top>224</top>
  405.             <right>164</right>
  406.             <bottom>238</bottom>
  407.         </rect>
  408.         <style>transparent</style>
  409.         <showName> <true /> </showName>
  410.         <highlight> <false /> </highlight>
  411.         <autoHighlight> <false /> </autoHighlight>
  412.         <sharedHighlight> <true /> </sharedHighlight>
  413.         <family>0</family>
  414.         <titleWidth>0</titleWidth>
  415.         <icon>0</icon>
  416.         <textAlign>center</textAlign>
  417.         <font>Geneva</font>
  418.         <textSize>9</textSize>
  419.         <textStyle>plain</textStyle>
  420.         <name>Global Long:</name>
  421.         <script></script>
  422.     </part>
  423.     <part>
  424.         <id>6</id>
  425.         <type>button</type>
  426.         <visible> <true /> </visible>
  427.         <reserved5> 0 </reserved5>
  428.         <reserved4> 0 </reserved4>
  429.         <reserved3> 0 </reserved3>
  430.         <reserved2> 0 </reserved2>
  431.         <reserved1> 0 </reserved1>
  432.         <enabled> <true /> </enabled>
  433.         <rect>
  434.             <left>97</left>
  435.             <top>240</top>
  436.             <right>164</right>
  437.             <bottom>254</bottom>
  438.         </rect>
  439.         <style>transparent</style>
  440.         <showName> <true /> </showName>
  441.         <highlight> <false /> </highlight>
  442.         <autoHighlight> <false /> </autoHighlight>
  443.         <sharedHighlight> <true /> </sharedHighlight>
  444.         <family>0</family>
  445.         <titleWidth>0</titleWidth>
  446.         <icon>0</icon>
  447.         <textAlign>center</textAlign>
  448.         <font>Geneva</font>
  449.         <textSize>9</textSize>
  450.         <textStyle>plain</textStyle>
  451.         <name>Global String:</name>
  452.         <script></script>
  453.     </part>
  454.     <part>
  455.         <id>7</id>
  456.         <type>button</type>
  457.         <visible> <true /> </visible>
  458.         <reserved5> 0 </reserved5>
  459.         <reserved4> 0 </reserved4>
  460.         <reserved3> 0 </reserved3>
  461.         <reserved2> 0 </reserved2>
  462.         <reserved1> 0 </reserved1>
  463.         <enabled> <false /> </enabled>
  464.         <rect>
  465.             <left>201</left>
  466.             <top>310</top>
  467.             <right>351</right>
  468.             <bottom>342</bottom>
  469.         </rect>
  470.         <style>opaque</style>
  471.         <showName> <false /> </showName>
  472.         <highlight> <false /> </highlight>
  473.         <autoHighlight> <false /> </autoHighlight>
  474.         <sharedHighlight> <true /> </sharedHighlight>
  475.         <family>0</family>
  476.         <titleWidth>0</titleWidth>
  477.         <icon>0</icon>
  478.         <textAlign>center</textAlign>
  479.         <font>Geneva</font>
  480.         <textSize>9</textSize>
  481.         <textStyle>plain</textStyle>
  482.         <name>Mask</name>
  483.         <script></script>
  484.     </part>
  485.     <part>
  486.         <id>8</id>
  487.         <type>field</type>
  488.         <visible> <true /> </visible>
  489.         <dontWrap> <false /> </dontWrap>
  490.         <dontSearch> <false /> </dontSearch>
  491.         <sharedText> <false /> </sharedText>
  492.         <fixedLineHeight> <true /> </fixedLineHeight>
  493.         <autoTab> <false /> </autoTab>
  494.         <lockText> <false /> </lockText>
  495.         <rect>
  496.             <left>164</left>
  497.             <top>242</top>
  498.             <right>496</right>
  499.             <bottom>255</bottom>
  500.         </rect>
  501.         <style>rectangle</style>
  502.         <autoSelect> <false /> </autoSelect>
  503.         <showLines> <false /> </showLines>
  504.         <wideMargins> <false /> </wideMargins>
  505.         <multipleLines> <false /> </multipleLines>
  506.         <reservedFamily> 0 </reservedFamily>
  507.         <titleWidth>0</titleWidth>
  508.         <icon>0</icon>
  509.         <textAlign>left</textAlign>
  510.         <font>Geneva</font>
  511.         <textSize>9</textSize>
  512.         <textStyle>plain</textStyle>
  513.         <textHeight>12</textHeight>
  514.         <name>Global String</name>
  515.         <script></script>
  516.     </part>
  517.     <part>
  518.         <id>9</id>
  519.         <type>field</type>
  520.         <visible> <true /> </visible>
  521.         <dontWrap> <false /> </dontWrap>
  522.         <dontSearch> <false /> </dontSearch>
  523.         <sharedText> <false /> </sharedText>
  524.         <fixedLineHeight> <true /> </fixedLineHeight>
  525.         <autoTab> <false /> </autoTab>
  526.         <lockText> <false /> </lockText>
  527.         <rect>
  528.             <left>164</left>
  529.             <top>224</top>
  530.             <right>261</right>
  531.             <bottom>237</bottom>
  532.         </rect>
  533.         <style>rectangle</style>
  534.         <autoSelect> <false /> </autoSelect>
  535.         <showLines> <false /> </showLines>
  536.         <wideMargins> <false /> </wideMargins>
  537.         <multipleLines> <false /> </multipleLines>
  538.         <reservedFamily> 0 </reservedFamily>
  539.         <titleWidth>0</titleWidth>
  540.         <icon>0</icon>
  541.         <textAlign>left</textAlign>
  542.         <font>Geneva</font>
  543.         <textSize>9</textSize>
  544.         <textStyle>plain</textStyle>
  545.         <textHeight>12</textHeight>
  546.         <name>Global Long</name>
  547.         <script></script>
  548.     </part>
  549.     <content>
  550.         <layer>background</layer>
  551.         <id>3</id>
  552.         <text>BasicDBCreate</text>
  553.     </content>
  554.     <content>
  555.         <layer>background</layer>
  556.         <id>16</id>
  557.         <text><span class="style5">escription:</span><span class="style1">
  558. The BasicDBCreate XCMD will create a new database file.
  559.  
  560. </span><span class="style5">Parameters:</span><span class="style1">
  561. 1. Full pathname for the new database file.
  562. 2. Global long integer value for the database.
  563. 3. Global String value for the database. (Max 127 characters)
  564.  
  565. </span><span class="style5">Usage:</span><span class="style1">
  566.                      BasicDBCreate theFile, globalLong, globalString
  567.  
  568. </span><span class="style5">Notes:</span><span class="style1">
  569.   The new database file will have a file type of "Data" and a creator type "BsDB".
  570.   Check "the result" for any errors.
  571.  
  572.   The new global data values are for things like comments or database serial numbers, etc.</span></text>
  573.     </content>
  574.     <name>BasicDBCreate</name>
  575.     <script></script>
  576. </card>
  577.  
  578.  
  579. card_4166.xml
  580. <?xml version="1.0" encoding="utf-8" ?>
  581. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  582. <card>
  583.     <id>4166</id>
  584.     <filler1>0</filler1>
  585.     <cantDelete> <false /> </cantDelete>
  586.     <showPict> <true /> </showPict>
  587.     <dontSearch> <false /> </dontSearch>
  588.     <owner>5207</owner>
  589.     <link rel="stylesheet" type="text/css" href="stylesheet_3204.css" />
  590.     <part>
  591.         <id>2</id>
  592.         <type>button</type>
  593.         <visible> <true /> </visible>
  594.         <reserved5> 0 </reserved5>
  595.         <reserved4> 0 </reserved4>
  596.         <reserved3> 0 </reserved3>
  597.         <reserved2> 0 </reserved2>
  598.         <reserved1> 0 </reserved1>
  599.         <enabled> <true /> </enabled>
  600.         <rect>
  601.             <left>18</left>
  602.             <top>302</top>
  603.             <right>77</right>
  604.             <bottom>324</bottom>
  605.         </rect>
  606.         <style>roundrect</style>
  607.         <showName> <true /> </showName>
  608.         <highlight> <false /> </highlight>
  609.         <autoHighlight> <true /> </autoHighlight>
  610.         <sharedHighlight> <true /> </sharedHighlight>
  611.         <family>0</family>
  612.         <titleWidth>0</titleWidth>
  613.         <icon>0</icon>
  614.         <textAlign>center</textAlign>
  615.         <font>Geneva</font>
  616.         <textSize>9</textSize>
  617.         <textStyle>plain</textStyle>
  618.         <name>New Item</name>
  619.         <script>on mouseUp
  620. set cursor to watch
  621. put bg fld "DB File" into dbFile
  622. put cd fld "Data" into theData
  623. put cd fld "Number Key" into numKey
  624. put cd fld "String Key" into strKey
  625. put the ticks into timeA
  626. BasicDBNewItem dbFile, theData, numKey, strKey
  627. put the result into theResult
  628. put the ticks into timeB
  629. put timeB-timeA into bg fld "Access Time"
  630. if "Error" is in theResult then
  631. answer theResult
  632. else put theResult into bg fld "Current Item"
  633.  
  634. pass mouseUp
  635. end mouseUp</script>
  636.     </part>
  637.     <part>
  638.         <id>4</id>
  639.         <type>button</type>
  640.         <visible> <true /> </visible>
  641.         <reserved5> 0 </reserved5>
  642.         <reserved4> 0 </reserved4>
  643.         <reserved3> 0 </reserved3>
  644.         <reserved2> 0 </reserved2>
  645.         <reserved1> 0 </reserved1>
  646.         <enabled> <true /> </enabled>
  647.         <rect>
  648.             <left>284</left>
  649.             <top>239</top>
  650.             <right>350</right>
  651.             <bottom>253</bottom>
  652.         </rect>
  653.         <style>transparent</style>
  654.         <showName> <true /> </showName>
  655.         <highlight> <false /> </highlight>
  656.         <autoHighlight> <true /> </autoHighlight>
  657.         <sharedHighlight> <true /> </sharedHighlight>
  658.         <family>0</family>
  659.         <titleWidth>0</titleWidth>
  660.         <icon>0</icon>
  661.         <textAlign>center</textAlign>
  662.         <font>Geneva</font>
  663.         <textSize>9</textSize>
  664.         <textStyle>plain</textStyle>
  665.         <name>Number Key:</name>
  666.         <script></script>
  667.     </part>
  668.     <part>
  669.         <id>5</id>
  670.         <type>button</type>
  671.         <visible> <true /> </visible>
  672.         <reserved5> 0 </reserved5>
  673.         <reserved4> 0 </reserved4>
  674.         <reserved3> 0 </reserved3>
  675.         <reserved2> 0 </reserved2>
  676.         <reserved1> 0 </reserved1>
  677.         <enabled> <true /> </enabled>
  678.         <rect>
  679.             <left>290</left>
  680.             <top>256</top>
  681.             <right>350</right>
  682.             <bottom>269</bottom>
  683.         </rect>
  684.         <style>transparent</style>
  685.         <showName> <true /> </showName>
  686.         <highlight> <false /> </highlight>
  687.         <autoHighlight> <true /> </autoHighlight>
  688.         <sharedHighlight> <true /> </sharedHighlight>
  689.         <family>0</family>
  690.         <titleWidth>0</titleWidth>
  691.         <icon>0</icon>
  692.         <textAlign>center</textAlign>
  693.         <font>Geneva</font>
  694.         <textSize>9</textSize>
  695.         <textStyle>plain</textStyle>
  696.         <name>String Key:</name>
  697.         <script></script>
  698.     </part>
  699.     <part>
  700.         <id>6</id>
  701.         <type>field</type>
  702.         <visible> <true /> </visible>
  703.         <dontWrap> <false /> </dontWrap>
  704.         <dontSearch> <false /> </dontSearch>
  705.         <sharedText> <false /> </sharedText>
  706.         <fixedLineHeight> <true /> </fixedLineHeight>
  707.         <autoTab> <false /> </autoTab>
  708.         <lockText> <false /> </lockText>
  709.         <rect>
  710.             <left>350</left>
  711.             <top>239</top>
  712.             <right>450</right>
  713.             <bottom>252</bottom>
  714.         </rect>
  715.         <style>rectangle</style>
  716.         <autoSelect> <false /> </autoSelect>
  717.         <showLines> <false /> </showLines>
  718.         <wideMargins> <false /> </wideMargins>
  719.         <multipleLines> <false /> </multipleLines>
  720.         <reservedFamily> 0 </reservedFamily>
  721.         <titleWidth>0</titleWidth>
  722.         <icon>0</icon>
  723.         <textAlign>left</textAlign>
  724.         <font>Geneva</font>
  725.         <textSize>9</textSize>
  726.         <textStyle>plain</textStyle>
  727.         <textHeight>12</textHeight>
  728.         <name>Number Key</name>
  729.         <script></script>
  730.     </part>
  731.     <part>
  732.         <id>7</id>
  733.         <type>field</type>
  734.         <visible> <true /> </visible>
  735.         <dontWrap> <false /> </dontWrap>
  736.         <dontSearch> <false /> </dontSearch>
  737.         <sharedText> <false /> </sharedText>
  738.         <fixedLineHeight> <true /> </fixedLineHeight>
  739.         <autoTab> <false /> </autoTab>
  740.         <lockText> <false /> </lockText>
  741.         <rect>
  742.             <left>350</left>
  743.             <top>256</top>
  744.             <right>510</right>
  745.             <bottom>269</bottom>
  746.         </rect>
  747.         <style>rectangle</style>
  748.         <autoSelect> <false /> </autoSelect>
  749.         <showLines> <false /> </showLines>
  750.         <wideMargins> <false /> </wideMargins>
  751.         <multipleLines> <false /> </multipleLines>
  752.         <reservedFamily> 0 </reservedFamily>
  753.         <titleWidth>0</titleWidth>
  754.         <icon>0</icon>
  755.         <textAlign>left</textAlign>
  756.         <font>Geneva</font>
  757.         <textSize>9</textSize>
  758.         <textStyle>plain</textStyle>
  759.         <textHeight>12</textHeight>
  760.         <name>String Key</name>
  761.         <script></script>
  762.     </part>
  763.     <part>
  764.         <id>9</id>
  765.         <type>field</type>
  766.         <visible> <true /> </visible>
  767.         <dontWrap> <false /> </dontWrap>
  768.         <dontSearch> <false /> </dontSearch>
  769.         <sharedText> <false /> </sharedText>
  770.         <fixedLineHeight> <true /> </fixedLineHeight>
  771.         <autoTab> <false /> </autoTab>
  772.         <lockText> <false /> </lockText>
  773.         <rect>
  774.             <left>11</left>
  775.             <top>221</top>
  776.             <right>280</right>
  777.             <bottom>284</bottom>
  778.         </rect>
  779.         <style>scrolling</style>
  780.         <autoSelect> <false /> </autoSelect>
  781.         <showLines> <false /> </showLines>
  782.         <wideMargins> <false /> </wideMargins>
  783.         <multipleLines> <false /> </multipleLines>
  784.         <reservedFamily> 0 </reservedFamily>
  785.         <titleWidth>0</titleWidth>
  786.         <icon>0</icon>
  787.         <textAlign>left</textAlign>
  788.         <font>Geneva</font>
  789.         <textSize>9</textSize>
  790.         <textStyle>plain</textStyle>
  791.         <textHeight>12</textHeight>
  792.         <name>Data</name>
  793.         <script></script>
  794.     </part>
  795.     <content>
  796.         <layer>background</layer>
  797.         <id>3</id>
  798.         <text>BasicDBNewItem</text>
  799.     </content>
  800.     <content>
  801.         <layer>background</layer>
  802.         <id>16</id>
  803.         <text><span class="style5">escription:</span><span class="style1">
  804. The BasicDBNewItem XCMD adds a new item to the database file.
  805.  
  806. </span><span class="style5">Parameters:</span><span class="style1">
  807. 1. Database file.
  808. 2. The data for the text item.
  809. 3. The number for the numeric key
  810. 4. The string for the string key.
  811.  
  812. </span><span class="style5">Usage:</span><span class="style1">
  813.                      BasicDBNewItem theFile, theData, numKey, strKey
  814.  
  815. </span><span class="style5">Notes:</span><span class="style1">
  816.  Initially searches for a dead spot in the file to place the item, but if it cannot find one, then it will append it to the file.</span></text>
  817.     </content>
  818.     <name>BasicDBNewItem</name>
  819.     <script></script>
  820. </card>
  821.  
  822.  
  823. card_4736.xml
  824. <?xml version="1.0" encoding="utf-8" ?>
  825. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  826. <card>
  827.     <id>4736</id>
  828.     <filler1>0</filler1>
  829.     <cantDelete> <false /> </cantDelete>
  830.     <showPict> <true /> </showPict>
  831.     <dontSearch> <false /> </dontSearch>
  832.     <owner>5207</owner>
  833.     <link rel="stylesheet" type="text/css" href="stylesheet_3204.css" />
  834.     <part>
  835.         <id>2</id>
  836.         <type>button</type>
  837.         <visible> <true /> </visible>
  838.         <reserved5> 0 </reserved5>
  839.         <reserved4> 0 </reserved4>
  840.         <reserved3> 0 </reserved3>
  841.         <reserved2> 0 </reserved2>
  842.         <reserved1> 0 </reserved1>
  843.         <enabled> <true /> </enabled>
  844.         <rect>
  845.             <left>16</left>
  846.             <top>238</top>
  847.             <right>75</right>
  848.             <bottom>260</bottom>
  849.         </rect>
  850.         <style>roundrect</style>
  851.         <showName> <true /> </showName>
  852.         <highlight> <false /> </highlight>
  853.         <autoHighlight> <true /> </autoHighlight>
  854.         <sharedHighlight> <true /> </sharedHighlight>
  855.         <family>0</family>
  856.         <titleWidth>0</titleWidth>
  857.         <icon>0</icon>
  858.         <textAlign>center</textAlign>
  859.         <font>Geneva</font>
  860.         <textSize>9</textSize>
  861.         <textStyle>plain</textStyle>
  862.         <name>Num Items</name>
  863.         <script>on mouseUp
  864. set cursor to watch
  865. put bg fld "DB File" into dbFile
  866. put the ticks into timeA
  867. put BasicDBNumItems(dbFile) into numRecords
  868. put the ticks into timeB
  869. put timeB-timeA into bg fld "Access Time"
  870. put "There are"&& numRecords &&"in the database."
  871. pass mouseUp
  872. end mouseUp
  873. </script>
  874.     </part>
  875.     <part>
  876.         <id>4</id>
  877.         <type>button</type>
  878.         <visible> <true /> </visible>
  879.         <reserved5> 0 </reserved5>
  880.         <reserved4> 0 </reserved4>
  881.         <reserved3> 0 </reserved3>
  882.         <reserved2> 0 </reserved2>
  883.         <reserved1> 0 </reserved1>
  884.         <enabled> <false /> </enabled>
  885.         <rect>
  886.             <left>201</left>
  887.             <top>310</top>
  888.             <right>351</right>
  889.             <bottom>342</bottom>
  890.         </rect>
  891.         <style>opaque</style>
  892.         <showName> <false /> </showName>
  893.         <highlight> <false /> </highlight>
  894.         <autoHighlight> <false /> </autoHighlight>
  895.         <sharedHighlight> <true /> </sharedHighlight>
  896.         <family>0</family>
  897.         <titleWidth>0</titleWidth>
  898.         <icon>0</icon>
  899.         <textAlign>center</textAlign>
  900.         <font>Geneva</font>
  901.         <textSize>9</textSize>
  902.         <textStyle>plain</textStyle>
  903.         <name>Mask</name>
  904.         <script></script>
  905.     </part>
  906.     <content>
  907.         <layer>background</layer>
  908.         <id>3</id>
  909.         <text>BasicDBNumItems</text>
  910.     </content>
  911.     <content>
  912.         <layer>background</layer>
  913.         <id>16</id>
  914.         <text><span class="style5">escription:</span><span class="style1">
  915. The BasicDBNumItems XFCN returns the number of active items in the database file.
  916.  
  917. </span><span class="style5">Parameters:</span><span class="style1">
  918. 1. Database file.
  919.  
  920. </span><span class="style5">Usage:</span><span class="style1">
  921.                      BasicDBNumItems(theFile)
  922.  
  923. </span><span class="style5">Notes:</span><span class="style1">
  924. </span></text>
  925.     </content>
  926.     <name>BasicDBNumItems</name>
  927.     <script></script>
  928. </card>
  929.  
  930.  
  931. card_5049.xml
  932. <?xml version="1.0" encoding="utf-8" ?>
  933. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  934. <card>
  935.     <id>5049</id>
  936.     <filler1>0</filler1>
  937.     <cantDelete> <false /> </cantDelete>
  938.     <showPict> <true /> </showPict>
  939.     <dontSearch> <false /> </dontSearch>
  940.     <owner>5207</owner>
  941.     <link rel="stylesheet" type="text/css" href="stylesheet_3204.css" />
  942.     <part>
  943.         <id>2</id>
  944.         <type>button</type>
  945.         <visible> <true /> </visible>
  946.         <reserved5> 0 </reserved5>
  947.         <reserved4> 0 </reserved4>
  948.         <reserved3> 0 </reserved3>
  949.         <reserved2> 0 </reserved2>
  950.         <reserved1> 0 </reserved1>
  951.         <enabled> <true /> </enabled>
  952.         <rect>
  953.             <left>15</left>
  954.             <top>238</top>
  955.             <right>74</right>
  956.             <bottom>260</bottom>
  957.         </rect>
  958.         <style>roundrect</style>
  959.         <showName> <true /> </showName>
  960.         <highlight> <false /> </highlight>
  961.         <autoHighlight> <true /> </autoHighlight>
  962.         <sharedHighlight> <true /> </sharedHighlight>
  963.         <family>0</family>
  964.         <titleWidth>0</titleWidth>
  965.         <icon>0</icon>
  966.         <textAlign>center</textAlign>
  967.         <font>Geneva</font>
  968.         <textSize>9</textSize>
  969.         <textStyle>plain</textStyle>
  970.         <name>Find Item</name>
  971.         <script>on mouseUp
  972. set cursor to watch
  973. put bg fld "DB File" into dbFile
  974. put cd fld "Find Data" into findData
  975. put the selectedText of cd btn "Find Type" into findType
  976. put the ticks into timeA
  977. put BasicDBFindItem(dbFile, findData, findType) into theData
  978. put the ticks into timeB
  979. put timeB-timeA into bg fld "Access Time"
  980. put theData into cd fld "Found Items"
  981. put number of lines in theData into cd fld "Num Finds"
  982.  
  983. pass mouseUp
  984. end mouseUp
  985.  
  986. </script>
  987.     </part>
  988.     <part>
  989.         <id>4</id>
  990.         <type>button</type>
  991.         <visible> <true /> </visible>
  992.         <reserved5> 0 </reserved5>
  993.         <reserved4> 0 </reserved4>
  994.         <reserved3> 0 </reserved3>
  995.         <reserved2> 0 </reserved2>
  996.         <reserved1> 0 </reserved1>
  997.         <enabled> <true /> </enabled>
  998.         <rect>
  999.             <left>105</left>
  1000.             <top>224</top>
  1001.             <right>227</right>
  1002.             <bottom>239</bottom>
  1003.         </rect>
  1004.         <style>popup</style>
  1005.         <showName> <true /> </showName>
  1006.         <highlight> <false /> </highlight>
  1007.         <autoHighlight> <true /> </autoHighlight>
  1008.         <sharedHighlight> <true /> </sharedHighlight>
  1009.         <family>0</family>
  1010.         <titleWidth>50</titleWidth>
  1011.         <selectedLines>
  1012.             <integer>1</integer>
  1013.         </selectedLines>
  1014.         <textAlign>center</textAlign>
  1015.         <font>Geneva</font>
  1016.         <textSize>9</textSize>
  1017.         <textStyle>plain</textStyle>
  1018.         <name>Find Type</name>
  1019.         <script></script>
  1020.     </part>
  1021.     <part>
  1022.         <id>5</id>
  1023.         <type>field</type>
  1024.         <visible> <true /> </visible>
  1025.         <dontWrap> <false /> </dontWrap>
  1026.         <dontSearch> <false /> </dontSearch>
  1027.         <sharedText> <false /> </sharedText>
  1028.         <fixedLineHeight> <true /> </fixedLineHeight>
  1029.         <autoTab> <false /> </autoTab>
  1030.         <lockText> <false /> </lockText>
  1031.         <rect>
  1032.             <left>88</left>
  1033.             <top>248</top>
  1034.             <right>327</right>
  1035.             <bottom>298</bottom>
  1036.         </rect>
  1037.         <style>scrolling</style>
  1038.         <autoSelect> <false /> </autoSelect>
  1039.         <showLines> <false /> </showLines>
  1040.         <wideMargins> <false /> </wideMargins>
  1041.         <multipleLines> <false /> </multipleLines>
  1042.         <reservedFamily> 0 </reservedFamily>
  1043.         <titleWidth>0</titleWidth>
  1044.         <icon>0</icon>
  1045.         <textAlign>left</textAlign>
  1046.         <font>Geneva</font>
  1047.         <textSize>9</textSize>
  1048.         <textStyle>plain</textStyle>
  1049.         <textHeight>12</textHeight>
  1050.         <name>Find Data</name>
  1051.         <script></script>
  1052.     </part>
  1053.     <part>
  1054.         <id>6</id>
  1055.         <type>field</type>
  1056.         <visible> <true /> </visible>
  1057.         <dontWrap> <false /> </dontWrap>
  1058.         <dontSearch> <false /> </dontSearch>
  1059.         <sharedText> <false /> </sharedText>
  1060.         <fixedLineHeight> <true /> </fixedLineHeight>
  1061.         <autoTab> <false /> </autoTab>
  1062.         <lockText> <false /> </lockText>
  1063.         <rect>
  1064.             <left>356</left>
  1065.             <top>248</top>
  1066.             <right>508</right>
  1067.             <bottom>298</bottom>
  1068.         </rect>
  1069.         <style>scrolling</style>
  1070.         <autoSelect> <false /> </autoSelect>
  1071.         <showLines> <false /> </showLines>
  1072.         <wideMargins> <false /> </wideMargins>
  1073.         <multipleLines> <false /> </multipleLines>
  1074.         <reservedFamily> 0 </reservedFamily>
  1075.         <titleWidth>0</titleWidth>
  1076.         <icon>0</icon>
  1077.         <textAlign>left</textAlign>
  1078.         <font>Geneva</font>
  1079.         <textSize>9</textSize>
  1080.         <textStyle>plain</textStyle>
  1081.         <textHeight>12</textHeight>
  1082.         <name>Found Items</name>
  1083.         <script></script>
  1084.     </part>
  1085.     <part>
  1086.         <id>7</id>
  1087.         <type>button</type>
  1088.         <visible> <true /> </visible>
  1089.         <reserved5> 0 </reserved5>
  1090.         <reserved4> 0 </reserved4>
  1091.         <reserved3> 0 </reserved3>
  1092.         <reserved2> 0 </reserved2>
  1093.         <reserved1> 0 </reserved1>
  1094.         <enabled> <true /> </enabled>
  1095.         <rect>
  1096.             <left>356</left>
  1097.             <top>233</top>
  1098.             <right>424</right>
  1099.             <bottom>247</bottom>
  1100.         </rect>
  1101.         <style>transparent</style>
  1102.         <showName> <true /> </showName>
  1103.         <highlight> <false /> </highlight>
  1104.         <autoHighlight> <false /> </autoHighlight>
  1105.         <sharedHighlight> <true /> </sharedHighlight>
  1106.         <family>0</family>
  1107.         <titleWidth>0</titleWidth>
  1108.         <icon>0</icon>
  1109.         <textAlign>center</textAlign>
  1110.         <font>Geneva</font>
  1111.         <textSize>9</textSize>
  1112.         <textStyle>plain</textStyle>
  1113.         <name>Found Items:</name>
  1114.         <script></script>
  1115.     </part>
  1116.     <part>
  1117.         <id>8</id>
  1118.         <type>field</type>
  1119.         <visible> <true /> </visible>
  1120.         <dontWrap> <false /> </dontWrap>
  1121.         <dontSearch> <false /> </dontSearch>
  1122.         <sharedText> <false /> </sharedText>
  1123.         <fixedLineHeight> <true /> </fixedLineHeight>
  1124.         <autoTab> <false /> </autoTab>
  1125.         <lockText> <true /> </lockText>
  1126.         <rect>
  1127.             <left>424</left>
  1128.             <top>300</top>
  1129.             <right>459</right>
  1130.             <bottom>313</bottom>
  1131.         </rect>
  1132.         <style>rectangle</style>
  1133.         <autoSelect> <false /> </autoSelect>
  1134.         <showLines> <false /> </showLines>
  1135.         <wideMargins> <false /> </wideMargins>
  1136.         <multipleLines> <false /> </multipleLines>
  1137.         <reservedFamily> 0 </reservedFamily>
  1138.         <titleWidth>0</titleWidth>
  1139.         <icon>0</icon>
  1140.         <textAlign>left</textAlign>
  1141.         <font>Geneva</font>
  1142.         <textSize>9</textSize>
  1143.         <textStyle>plain</textStyle>
  1144.         <textHeight>12</textHeight>
  1145.         <name>Num Finds</name>
  1146.         <script></script>
  1147.     </part>
  1148.     <part>
  1149.         <id>9</id>
  1150.         <type>button</type>
  1151.         <visible> <true /> </visible>
  1152.         <reserved5> 0 </reserved5>
  1153.         <reserved4> 0 </reserved4>
  1154.         <reserved3> 0 </reserved3>
  1155.         <reserved2> 0 </reserved2>
  1156.         <reserved1> 0 </reserved1>
  1157.         <enabled> <true /> </enabled>
  1158.         <rect>
  1159.             <left>370</left>
  1160.             <top>300</top>
  1161.             <right>424</right>
  1162.             <bottom>313</bottom>
  1163.         </rect>
  1164.         <style>transparent</style>
  1165.         <showName> <true /> </showName>
  1166.         <highlight> <false /> </highlight>
  1167.         <autoHighlight> <false /> </autoHighlight>
  1168.         <sharedHighlight> <true /> </sharedHighlight>
  1169.         <family>0</family>
  1170.         <titleWidth>0</titleWidth>
  1171.         <icon>0</icon>
  1172.         <textAlign>center</textAlign>
  1173.         <font>Geneva</font>
  1174.         <textSize>9</textSize>
  1175.         <textStyle>plain</textStyle>
  1176.         <name>Num Finds:</name>
  1177.         <script></script>
  1178.     </part>
  1179.     <part>
  1180.         <id>10</id>
  1181.         <type>button</type>
  1182.         <visible> <true /> </visible>
  1183.         <reserved5> 0 </reserved5>
  1184.         <reserved4> 0 </reserved4>
  1185.         <reserved3> 0 </reserved3>
  1186.         <reserved2> 0 </reserved2>
  1187.         <reserved1> 0 </reserved1>
  1188.         <enabled> <false /> </enabled>
  1189.         <rect>
  1190.             <left>201</left>
  1191.             <top>310</top>
  1192.             <right>351</right>
  1193.             <bottom>342</bottom>
  1194.         </rect>
  1195.         <style>opaque</style>
  1196.         <showName> <false /> </showName>
  1197.         <highlight> <false /> </highlight>
  1198.         <autoHighlight> <false /> </autoHighlight>
  1199.         <sharedHighlight> <true /> </sharedHighlight>
  1200.         <family>0</family>
  1201.         <titleWidth>0</titleWidth>
  1202.         <icon>0</icon>
  1203.         <textAlign>center</textAlign>
  1204.         <font>Geneva</font>
  1205.         <textSize>9</textSize>
  1206.         <textStyle>plain</textStyle>
  1207.         <name>Mask</name>
  1208.         <script></script>
  1209.     </part>
  1210.     <content>
  1211.         <layer>background</layer>
  1212.         <id>3</id>
  1213.         <text>BasicDBFindItem</text>
  1214.     </content>
  1215.     <content>
  1216.         <layer>background</layer>
  1217.         <id>16</id>
  1218.         <text><span class="style5">escription:</span><span class="style1">
  1219. The BasicDBFindItem XFCN performs a search of the database file.
  1220.  
  1221. </span><span class="style5">Parameters:</span><span class="style1">
  1222. 1. Database file.
  1223. 2. The search criteria data.
  1224. 3. The type of search to perform.
  1225.  
  1226. </span><span class="style5">Usage:</span><span class="style1">
  1227.                      BasicDBFindItem(theFile, findData, findType)
  1228.  
  1229. </span><span class="style5">Notes:</span><span class="style1">
  1230.   The XFCN returns a return delimited list of item IDs that match the search criteria.
  1231.   The findType parameter will determine what type of search will take place.
  1232.   When findType equals one of the following, that item's ID will be added to the match list.
  1233.    "number" : The numeric key matches findData.
  1234.    "string" : The string key matches findData
  1235.    "data" : The text data "contains" the findData parameter. This is a case-insensitive search.</span></text>
  1236.     </content>
  1237.     <content>
  1238.         <layer>card</layer>
  1239.         <id>4</id>
  1240.         <text>number
  1241. string
  1242. data</text>
  1243.     </content>
  1244.     <name>BasicDBFindItem</name>
  1245.     <script></script>
  1246. </card>
  1247.  
  1248.  
  1249. card_5422.xml
  1250. <?xml version="1.0" encoding="utf-8" ?>
  1251. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1252. <card>
  1253.     <id>5422</id>
  1254.     <filler1>0</filler1>
  1255.     <cantDelete> <false /> </cantDelete>
  1256.     <showPict> <true /> </showPict>
  1257.     <dontSearch> <false /> </dontSearch>
  1258.     <owner>5207</owner>
  1259.     <link rel="stylesheet" type="text/css" href="stylesheet_3204.css" />
  1260.     <part>
  1261.         <id>2</id>
  1262.         <type>button</type>
  1263.         <visible> <true /> </visible>
  1264.         <reserved5> 0 </reserved5>
  1265.         <reserved4> 0 </reserved4>
  1266.         <reserved3> 0 </reserved3>
  1267.         <reserved2> 0 </reserved2>
  1268.         <reserved1> 0 </reserved1>
  1269.         <enabled> <true /> </enabled>
  1270.         <rect>
  1271.             <left>18</left>
  1272.             <top>302</top>
  1273.             <right>77</right>
  1274.             <bottom>324</bottom>
  1275.         </rect>
  1276.         <style>roundrect</style>
  1277.         <showName> <true /> </showName>
  1278.         <highlight> <false /> </highlight>
  1279.         <autoHighlight> <true /> </autoHighlight>
  1280.         <sharedHighlight> <true /> </sharedHighlight>
  1281.         <family>0</family>
  1282.         <titleWidth>0</titleWidth>
  1283.         <icon>0</icon>
  1284.         <textAlign>center</textAlign>
  1285.         <font>Geneva</font>
  1286.         <textSize>9</textSize>
  1287.         <textStyle>plain</textStyle>
  1288.         <name>Get Item</name>
  1289.         <script>on mouseUp
  1290. set cursor to watch
  1291. put bg fld "DB File" into dbFile
  1292. -- if the optionKey=down then
  1293. -- put BasicDBNumItems(dbFile) into numRecords
  1294. -- put random(numRecords) into itemNum
  1295. -- put itemNum into cd fld "Current Item"
  1296. -- else put cd fld "Current Item" into itemNum
  1297. put bg fld "Current Item" into itemNum
  1298.  
  1299. put the ticks into timeA
  1300. put BasicDBGetItem(dbFile, itemNum) into theData
  1301. put the ticks into timeB
  1302.  
  1303. put timeB-timeA into bg fld "Access Time"
  1304. put length of theData into cd fld "Item Length"
  1305. put char 1 to 30000 of theData into cd fld "Data"
  1306. pass mouseUp
  1307. end mouseUp
  1308. </script>
  1309.     </part>
  1310.     <part>
  1311.         <id>3</id>
  1312.         <type>field</type>
  1313.         <visible> <true /> </visible>
  1314.         <dontWrap> <false /> </dontWrap>
  1315.         <dontSearch> <false /> </dontSearch>
  1316.         <sharedText> <false /> </sharedText>
  1317.         <fixedLineHeight> <true /> </fixedLineHeight>
  1318.         <autoTab> <false /> </autoTab>
  1319.         <lockText> <false /> </lockText>
  1320.         <rect>
  1321.             <left>11</left>
  1322.             <top>221</top>
  1323.             <right>369</right>
  1324.             <bottom>284</bottom>
  1325.         </rect>
  1326.         <style>scrolling</style>
  1327.         <autoSelect> <false /> </autoSelect>
  1328.         <showLines> <false /> </showLines>
  1329.         <wideMargins> <false /> </wideMargins>
  1330.         <multipleLines> <false /> </multipleLines>
  1331.         <reservedFamily> 0 </reservedFamily>
  1332.         <titleWidth>0</titleWidth>
  1333.         <icon>0</icon>
  1334.         <textAlign>left</textAlign>
  1335.         <font>Geneva</font>
  1336.         <textSize>9</textSize>
  1337.         <textStyle>plain</textStyle>
  1338.         <textHeight>12</textHeight>
  1339.         <name>Data</name>
  1340.         <script></script>
  1341.     </part>
  1342.     <part>
  1343.         <id>5</id>
  1344.         <type>field</type>
  1345.         <visible> <true /> </visible>
  1346.         <dontWrap> <false /> </dontWrap>
  1347.         <dontSearch> <false /> </dontSearch>
  1348.         <sharedText> <false /> </sharedText>
  1349.         <fixedLineHeight> <true /> </fixedLineHeight>
  1350.         <autoTab> <false /> </autoTab>
  1351.         <lockText> <false /> </lockText>
  1352.         <rect>
  1353.             <left>294</left>
  1354.             <top>287</top>
  1355.             <right>339</right>
  1356.             <bottom>300</bottom>
  1357.         </rect>
  1358.         <style>rectangle</style>
  1359.         <autoSelect> <false /> </autoSelect>
  1360.         <showLines> <false /> </showLines>
  1361.         <wideMargins> <false /> </wideMargins>
  1362.         <multipleLines> <false /> </multipleLines>
  1363.         <reservedFamily> 0 </reservedFamily>
  1364.         <titleWidth>0</titleWidth>
  1365.         <icon>0</icon>
  1366.         <textAlign>left</textAlign>
  1367.         <font>Geneva</font>
  1368.         <textSize>9</textSize>
  1369.         <textStyle>plain</textStyle>
  1370.         <textHeight>12</textHeight>
  1371.         <name>Item Length</name>
  1372.         <script></script>
  1373.     </part>
  1374.     <part>
  1375.         <id>6</id>
  1376.         <type>button</type>
  1377.         <visible> <true /> </visible>
  1378.         <reserved5> 0 </reserved5>
  1379.         <reserved4> 0 </reserved4>
  1380.         <reserved3> 0 </reserved3>
  1381.         <reserved2> 0 </reserved2>
  1382.         <reserved1> 0 </reserved1>
  1383.         <enabled> <true /> </enabled>
  1384.         <rect>
  1385.             <left>235</left>
  1386.             <top>287</top>
  1387.             <right>294</right>
  1388.             <bottom>301</bottom>
  1389.         </rect>
  1390.         <style>transparent</style>
  1391.         <showName> <true /> </showName>
  1392.         <highlight> <false /> </highlight>
  1393.         <autoHighlight> <false /> </autoHighlight>
  1394.         <sharedHighlight> <true /> </sharedHighlight>
  1395.         <family>0</family>
  1396.         <titleWidth>0</titleWidth>
  1397.         <icon>0</icon>
  1398.         <textAlign>center</textAlign>
  1399.         <font>Geneva</font>
  1400.         <textSize>9</textSize>
  1401.         <textStyle>plain</textStyle>
  1402.         <name>Item Length:</name>
  1403.         <script></script>
  1404.     </part>
  1405.     <content>
  1406.         <layer>background</layer>
  1407.         <id>3</id>
  1408.         <text>BasicDBGetItem</text>
  1409.     </content>
  1410.     <content>
  1411.         <layer>background</layer>
  1412.         <id>16</id>
  1413.         <text><span class="style5">escription:</span><span class="style1">
  1414. The BasicDBGetItem XFCN returns the text data component of a given database item ID.
  1415.  
  1416. </span><span class="style5">Parameters:</span><span class="style1">
  1417. 1. Database file.
  1418. 2. Item ID.
  1419.  
  1420. </span><span class="style5">Usage:</span><span class="style1">
  1421.                      BasicDBGetItem(theFile, itemID)
  1422.  
  1423. </span><span class="style5">Notes:</span><span class="style1">
  1424. </span></text>
  1425.     </content>
  1426.     <name>BasicDBGetItem</name>
  1427.     <script></script>
  1428. </card>
  1429.  
  1430.  
  1431. card_5998.xml
  1432. <?xml version="1.0" encoding="utf-8" ?>
  1433. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1434. <card>
  1435.     <id>5998</id>
  1436.     <filler1>0</filler1>
  1437.     <cantDelete> <false /> </cantDelete>
  1438.     <showPict> <true /> </showPict>
  1439.     <dontSearch> <false /> </dontSearch>
  1440.     <owner>5207</owner>
  1441.     <link rel="stylesheet" type="text/css" href="stylesheet_3204.css" />
  1442.     <part>
  1443.         <id>2</id>
  1444.         <type>button</type>
  1445.         <visible> <true /> </visible>
  1446.         <reserved5> 0 </reserved5>
  1447.         <reserved4> 0 </reserved4>
  1448.         <reserved3> 0 </reserved3>
  1449.         <reserved2> 0 </reserved2>
  1450.         <reserved1> 0 </reserved1>
  1451.         <enabled> <true /> </enabled>
  1452.         <rect>
  1453.             <left>15</left>
  1454.             <top>238</top>
  1455.             <right>74</right>
  1456.             <bottom>260</bottom>
  1457.         </rect>
  1458.         <style>roundrect</style>
  1459.         <showName> <true /> </showName>
  1460.         <highlight> <false /> </highlight>
  1461.         <autoHighlight> <true /> </autoHighlight>
  1462.         <sharedHighlight> <true /> </sharedHighlight>
  1463.         <family>0</family>
  1464.         <titleWidth>0</titleWidth>
  1465.         <icon>0</icon>
  1466.         <textAlign>center</textAlign>
  1467.         <font>Geneva</font>
  1468.         <textSize>9</textSize>
  1469.         <textStyle>plain</textStyle>
  1470.         <name>Delete Item</name>
  1471.         <script>on mouseUp
  1472. set cursor to watch
  1473. put bg fld "DB File" into dbFile
  1474. put bg fld "Current Item" into itemNum
  1475. put the ticks into timeA
  1476. BasicDBDeleteItem dbFile, itemNum
  1477. put the result into theResult
  1478. put the ticks into timeB
  1479. if "Error" is in theResult then answer theResult
  1480.  
  1481. put timeB-timeA into bg fld "Access Time"
  1482.  
  1483. pass mouseUp
  1484. end mouseUp</script>
  1485.     </part>
  1486.     <content>
  1487.         <layer>background</layer>
  1488.         <id>3</id>
  1489.         <text>BasicDBDeleteItem</text>
  1490.     </content>
  1491.     <content>
  1492.         <layer>background</layer>
  1493.         <id>16</id>
  1494.         <text><span class="style5">escription:</span><span class="style1">
  1495. The BasicDBDeleteItem XCMD deletes the database item of a given item ID.
  1496.  
  1497. </span><span class="style5">Parameters:</span><span class="style1">
  1498. 1. Database file.
  1499. 2. Item ID.
  1500.  
  1501. </span><span class="style5">Usage:</span><span class="style1">
  1502.                      BasicDBDeleteItem theFile, itemID
  1503.  
  1504. </span><span class="style5">Notes:</span><span class="style1">
  1505.   The data is not actually erased. The block taken up by the item is marked as free to be used for future items. This dead space may be reclaimed by using the BasicDBCompact XCMD.</span></text>
  1506.     </content>
  1507.     <name>BasicDBDeleteItem</name>
  1508.     <script></script>
  1509. </card>
  1510.  
  1511.  
  1512. card_6393.xml
  1513. <?xml version="1.0" encoding="utf-8" ?>
  1514. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1515. <card>
  1516.     <id>6393</id>
  1517.     <filler1>0</filler1>
  1518.     <cantDelete> <false /> </cantDelete>
  1519.     <showPict> <true /> </showPict>
  1520.     <dontSearch> <false /> </dontSearch>
  1521.     <owner>5207</owner>
  1522.     <link rel="stylesheet" type="text/css" href="stylesheet_3204.css" />
  1523.     <part>
  1524.         <id>2</id>
  1525.         <type>button</type>
  1526.         <visible> <true /> </visible>
  1527.         <reserved5> 0 </reserved5>
  1528.         <reserved4> 0 </reserved4>
  1529.         <reserved3> 0 </reserved3>
  1530.         <reserved2> 0 </reserved2>
  1531.         <reserved1> 0 </reserved1>
  1532.         <enabled> <true /> </enabled>
  1533.         <rect>
  1534.             <left>18</left>
  1535.             <top>302</top>
  1536.             <right>77</right>
  1537.             <bottom>324</bottom>
  1538.         </rect>
  1539.         <style>roundrect</style>
  1540.         <showName> <true /> </showName>
  1541.         <highlight> <false /> </highlight>
  1542.         <autoHighlight> <true /> </autoHighlight>
  1543.         <sharedHighlight> <true /> </sharedHighlight>
  1544.         <family>0</family>
  1545.         <titleWidth>0</titleWidth>
  1546.         <icon>0</icon>
  1547.         <textAlign>center</textAlign>
  1548.         <font>Geneva</font>
  1549.         <textSize>9</textSize>
  1550.         <textStyle>plain</textStyle>
  1551.         <name>Get Index</name>
  1552.         <script>on mouseUp
  1553. set cursor to watch
  1554. put bg fld "DB File" into dbFile
  1555. put the ticks into timeA
  1556. put BasicDBGetIndex(dbFile) into theData
  1557. put the ticks into timeB
  1558. put timeB-timeA into bg fld "Access Time"
  1559. put theData into cd fld "Data"
  1560. pass mouseUp
  1561. end mouseUp
  1562. </script>
  1563.     </part>
  1564.     <part>
  1565.         <id>3</id>
  1566.         <type>field</type>
  1567.         <visible> <true /> </visible>
  1568.         <dontWrap> <false /> </dontWrap>
  1569.         <dontSearch> <false /> </dontSearch>
  1570.         <sharedText> <false /> </sharedText>
  1571.         <fixedLineHeight> <true /> </fixedLineHeight>
  1572.         <autoTab> <false /> </autoTab>
  1573.         <lockText> <false /> </lockText>
  1574.         <rect>
  1575.             <left>11</left>
  1576.             <top>221</top>
  1577.             <right>369</right>
  1578.             <bottom>284</bottom>
  1579.         </rect>
  1580.         <style>scrolling</style>
  1581.         <autoSelect> <false /> </autoSelect>
  1582.         <showLines> <false /> </showLines>
  1583.         <wideMargins> <false /> </wideMargins>
  1584.         <multipleLines> <false /> </multipleLines>
  1585.         <reservedFamily> 0 </reservedFamily>
  1586.         <titleWidth>0</titleWidth>
  1587.         <icon>0</icon>
  1588.         <textAlign>left</textAlign>
  1589.         <font>Geneva</font>
  1590.         <textSize>9</textSize>
  1591.         <textStyle>plain</textStyle>
  1592.         <textHeight>12</textHeight>
  1593.         <name>Data</name>
  1594.         <script></script>
  1595.     </part>
  1596.     <part>
  1597.         <id>5</id>
  1598.         <type>button</type>
  1599.         <visible> <true /> </visible>
  1600.         <reserved5> 0 </reserved5>
  1601.         <reserved4> 0 </reserved4>
  1602.         <reserved3> 0 </reserved3>
  1603.         <reserved2> 0 </reserved2>
  1604.         <reserved1> 0 </reserved1>
  1605.         <enabled> <false /> </enabled>
  1606.         <rect>
  1607.             <left>201</left>
  1608.             <top>310</top>
  1609.             <right>351</right>
  1610.             <bottom>342</bottom>
  1611.         </rect>
  1612.         <style>opaque</style>
  1613.         <showName> <false /> </showName>
  1614.         <highlight> <false /> </highlight>
  1615.         <autoHighlight> <false /> </autoHighlight>
  1616.         <sharedHighlight> <true /> </sharedHighlight>
  1617.         <family>0</family>
  1618.         <titleWidth>0</titleWidth>
  1619.         <icon>0</icon>
  1620.         <textAlign>center</textAlign>
  1621.         <font>Geneva</font>
  1622.         <textSize>9</textSize>
  1623.         <textStyle>plain</textStyle>
  1624.         <name>Mask</name>
  1625.         <script></script>
  1626.     </part>
  1627.     <content>
  1628.         <layer>background</layer>
  1629.         <id>3</id>
  1630.         <text>BasicDBGetIndex</text>
  1631.     </content>
  1632.     <content>
  1633.         <layer>background</layer>
  1634.         <id>16</id>
  1635.         <text><span class="style5">escription:</span><span class="style1">
  1636. The BasicDBGetIndex XCMD compiles a sequential index of the items in a database file.
  1637.  
  1638. </span><span class="style5">Parameters:</span><span class="style1">
  1639. 1. Database file.
  1640.  
  1641. </span><span class="style5">Usage:</span><span class="style1">
  1642.                      BasicDBGetIndex(theFile)
  1643.  
  1644. </span><span class="style5">Notes:</span><span class="style1">
  1645.   The XFCN returns a tab/return delimited list. The list contains the following:
  1646. 1. The Item ID
  1647. 2. The numeric key
  1648. 3. The string key
  1649. 4. The length of the text data component.</span></text>
  1650.     </content>
  1651.     <name>BasicDBGetIndex</name>
  1652.     <script></script>
  1653. </card>
  1654.  
  1655.  
  1656. card_3829.xml
  1657. <?xml version="1.0" encoding="utf-8" ?>
  1658. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1659. <card>
  1660.     <id>3829</id>
  1661.     <filler1>0</filler1>
  1662.     <cantDelete> <false /> </cantDelete>
  1663.     <showPict> <true /> </showPict>
  1664.     <dontSearch> <false /> </dontSearch>
  1665.     <owner>5207</owner>
  1666.     <link rel="stylesheet" type="text/css" href="stylesheet_3204.css" />
  1667.     <part>
  1668.         <id>7</id>
  1669.         <type>field</type>
  1670.         <visible> <true /> </visible>
  1671.         <dontWrap> <false /> </dontWrap>
  1672.         <dontSearch> <false /> </dontSearch>
  1673.         <sharedText> <false /> </sharedText>
  1674.         <fixedLineHeight> <true /> </fixedLineHeight>
  1675.         <autoTab> <false /> </autoTab>
  1676.         <lockText> <false /> </lockText>
  1677.         <rect>
  1678.             <left>11</left>
  1679.             <top>221</top>
  1680.             <right>280</right>
  1681.             <bottom>284</bottom>
  1682.         </rect>
  1683.         <style>scrolling</style>
  1684.         <autoSelect> <false /> </autoSelect>
  1685.         <showLines> <false /> </showLines>
  1686.         <wideMargins> <false /> </wideMargins>
  1687.         <multipleLines> <false /> </multipleLines>
  1688.         <reservedFamily> 0 </reservedFamily>
  1689.         <titleWidth>0</titleWidth>
  1690.         <icon>0</icon>
  1691.         <textAlign>left</textAlign>
  1692.         <font>Geneva</font>
  1693.         <textSize>9</textSize>
  1694.         <textStyle>plain</textStyle>
  1695.         <textHeight>12</textHeight>
  1696.         <name>Data</name>
  1697.         <script></script>
  1698.     </part>
  1699.     <part>
  1700.         <id>5</id>
  1701.         <type>field</type>
  1702.         <visible> <true /> </visible>
  1703.         <dontWrap> <false /> </dontWrap>
  1704.         <dontSearch> <false /> </dontSearch>
  1705.         <sharedText> <false /> </sharedText>
  1706.         <fixedLineHeight> <true /> </fixedLineHeight>
  1707.         <autoTab> <false /> </autoTab>
  1708.         <lockText> <false /> </lockText>
  1709.         <rect>
  1710.             <left>350</left>
  1711.             <top>239</top>
  1712.             <right>450</right>
  1713.             <bottom>252</bottom>
  1714.         </rect>
  1715.         <style>rectangle</style>
  1716.         <autoSelect> <false /> </autoSelect>
  1717.         <showLines> <false /> </showLines>
  1718.         <wideMargins> <false /> </wideMargins>
  1719.         <multipleLines> <false /> </multipleLines>
  1720.         <reservedFamily> 0 </reservedFamily>
  1721.         <titleWidth>0</titleWidth>
  1722.         <icon>0</icon>
  1723.         <textAlign>left</textAlign>
  1724.         <font>Geneva</font>
  1725.         <textSize>9</textSize>
  1726.         <textStyle>plain</textStyle>
  1727.         <textHeight>12</textHeight>
  1728.         <name>Number Key</name>
  1729.         <script></script>
  1730.     </part>
  1731.     <part>
  1732.         <id>6</id>
  1733.         <type>field</type>
  1734.         <visible> <true /> </visible>
  1735.         <dontWrap> <false /> </dontWrap>
  1736.         <dontSearch> <false /> </dontSearch>
  1737.         <sharedText> <false /> </sharedText>
  1738.         <fixedLineHeight> <true /> </fixedLineHeight>
  1739.         <autoTab> <false /> </autoTab>
  1740.         <lockText> <false /> </lockText>
  1741.         <rect>
  1742.             <left>350</left>
  1743.             <top>256</top>
  1744.             <right>510</right>
  1745.             <bottom>269</bottom>
  1746.         </rect>
  1747.         <style>rectangle</style>
  1748.         <autoSelect> <false /> </autoSelect>
  1749.         <showLines> <false /> </showLines>
  1750.         <wideMargins> <false /> </wideMargins>
  1751.         <multipleLines> <false /> </multipleLines>
  1752.         <reservedFamily> 0 </reservedFamily>
  1753.         <titleWidth>0</titleWidth>
  1754.         <icon>0</icon>
  1755.         <textAlign>left</textAlign>
  1756.         <font>Geneva</font>
  1757.         <textSize>9</textSize>
  1758.         <textStyle>plain</textStyle>
  1759.         <textHeight>12</textHeight>
  1760.         <name>String Key</name>
  1761.         <script></script>
  1762.     </part>
  1763.     <part>
  1764.         <id>2</id>
  1765.         <type>button</type>
  1766.         <visible> <true /> </visible>
  1767.         <reserved5> 0 </reserved5>
  1768.         <reserved4> 0 </reserved4>
  1769.         <reserved3> 0 </reserved3>
  1770.         <reserved2> 0 </reserved2>
  1771.         <reserved1> 0 </reserved1>
  1772.         <enabled> <true /> </enabled>
  1773.         <rect>
  1774.             <left>18</left>
  1775.             <top>302</top>
  1776.             <right>77</right>
  1777.             <bottom>324</bottom>
  1778.         </rect>
  1779.         <style>roundrect</style>
  1780.         <showName> <true /> </showName>
  1781.         <highlight> <false /> </highlight>
  1782.         <autoHighlight> <true /> </autoHighlight>
  1783.         <sharedHighlight> <true /> </sharedHighlight>
  1784.         <family>0</family>
  1785.         <titleWidth>0</titleWidth>
  1786.         <icon>0</icon>
  1787.         <textAlign>center</textAlign>
  1788.         <font>Geneva</font>
  1789.         <textSize>9</textSize>
  1790.         <textStyle>plain</textStyle>
  1791.         <name>Set Item</name>
  1792.         <script>on mouseUp
  1793. set cursor to watch
  1794. put bg fld "DB File" into dbFile
  1795. put bg fld "Current Item" into itemNum
  1796. put cd fld "Data" into theData
  1797. put cd fld "Number Key" into numKey
  1798. put cd fld "String Key" into strKey
  1799. put the ticks into timeA
  1800. BasicDBSetItem dbFile, itemNum, theData, numKey, strKey
  1801. put the result into theResult
  1802. put the ticks into timeB
  1803. if "Error" is in theResult then answer theResult
  1804.  
  1805. put timeB-timeA into bg fld "Access Time"
  1806.  
  1807. pass mouseUp
  1808. end mouseUp</script>
  1809.     </part>
  1810.     <part>
  1811.         <id>8</id>
  1812.         <type>button</type>
  1813.         <visible> <true /> </visible>
  1814.         <reserved5> 0 </reserved5>
  1815.         <reserved4> 0 </reserved4>
  1816.         <reserved3> 0 </reserved3>
  1817.         <reserved2> 0 </reserved2>
  1818.         <reserved1> 0 </reserved1>
  1819.         <enabled> <true /> </enabled>
  1820.         <rect>
  1821.             <left>284</left>
  1822.             <top>239</top>
  1823.             <right>350</right>
  1824.             <bottom>253</bottom>
  1825.         </rect>
  1826.         <style>transparent</style>
  1827.         <showName> <true /> </showName>
  1828.         <highlight> <false /> </highlight>
  1829.         <autoHighlight> <true /> </autoHighlight>
  1830.         <sharedHighlight> <true /> </sharedHighlight>
  1831.         <family>0</family>
  1832.         <titleWidth>0</titleWidth>
  1833.         <icon>0</icon>
  1834.         <textAlign>center</textAlign>
  1835.         <font>Geneva</font>
  1836.         <textSize>9</textSize>
  1837.         <textStyle>plain</textStyle>
  1838.         <name>Number Key:</name>
  1839.         <script></script>
  1840.     </part>
  1841.     <part>
  1842.         <id>9</id>
  1843.         <type>button</type>
  1844.         <visible> <true /> </visible>
  1845.         <reserved5> 0 </reserved5>
  1846.         <reserved4> 0 </reserved4>
  1847.         <reserved3> 0 </reserved3>
  1848.         <reserved2> 0 </reserved2>
  1849.         <reserved1> 0 </reserved1>
  1850.         <enabled> <true /> </enabled>
  1851.         <rect>
  1852.             <left>290</left>
  1853.             <top>256</top>
  1854.             <right>350</right>
  1855.             <bottom>269</bottom>
  1856.         </rect>
  1857.         <style>transparent</style>
  1858.         <showName> <true /> </showName>
  1859.         <highlight> <false /> </highlight>
  1860.         <autoHighlight> <true /> </autoHighlight>
  1861.         <sharedHighlight> <true /> </sharedHighlight>
  1862.         <family>0</family>
  1863.         <titleWidth>0</titleWidth>
  1864.         <icon>0</icon>
  1865.         <textAlign>center</textAlign>
  1866.         <font>Geneva</font>
  1867.         <textSize>9</textSize>
  1868.         <textStyle>plain</textStyle>
  1869.         <name>String Key:</name>
  1870.         <script></script>
  1871.     </part>
  1872.     <content>
  1873.         <layer>background</layer>
  1874.         <id>3</id>
  1875.         <text>BasicDBSetItem</text>
  1876.     </content>
  1877.     <content>
  1878.         <layer>background</layer>
  1879.         <id>16</id>
  1880.         <text><span class="style5">escription:</span><span class="style1">
  1881. The BasicDBSetItem XCMD replaces the data for the fields for a given item ID.
  1882.  
  1883. </span><span class="style5">Parameters:</span><span class="style1">
  1884. 1. Database file.
  1885. 2. Item ID
  1886. 3. Text data
  1887. 4. Numeric Key
  1888. 5. String Key
  1889.  
  1890. </span><span class="style5">Usage:</span><span class="style1">
  1891.                      BasicDBSetItem theFile, itemID, theData, numKey, strKey
  1892.  
  1893. </span><span class="style5">Notes:</span><span class="style1">
  1894.   The values of the numeric key, the string key and the text data are saved for the item ID sepcified.
  1895.   If the new data is too large to fit into the original spot in the file, the data will be saved at the first available spot in the file. As the external is searching for the item's original spot it will be looking for spots in the file where the data will fit. If it is necessary to move the data then the first available spot will be used. This particular routine, in effect, attempts to keep the database file from becoming bloated.</span></text>
  1896.     </content>
  1897.     <name>BasicDBSetItem</name>
  1898.     <script></script>
  1899. </card>
  1900.  
  1901.  
  1902. card_7004.xml
  1903. <?xml version="1.0" encoding="utf-8" ?>
  1904. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1905. <card>
  1906.     <id>7004</id>
  1907.     <filler1>0</filler1>
  1908.     <cantDelete> <false /> </cantDelete>
  1909.     <showPict> <true /> </showPict>
  1910.     <dontSearch> <false /> </dontSearch>
  1911.     <owner>5207</owner>
  1912.     <link rel="stylesheet" type="text/css" href="stylesheet_3204.css" />
  1913.     <part>
  1914.         <id>5</id>
  1915.         <type>button</type>
  1916.         <visible> <true /> </visible>
  1917.         <reserved5> 0 </reserved5>
  1918.         <reserved4> 0 </reserved4>
  1919.         <reserved3> 0 </reserved3>
  1920.         <reserved2> 0 </reserved2>
  1921.         <reserved1> 0 </reserved1>
  1922.         <enabled> <true /> </enabled>
  1923.         <rect>
  1924.             <left>15</left>
  1925.             <top>238</top>
  1926.             <right>74</right>
  1927.             <bottom>260</bottom>
  1928.         </rect>
  1929.         <style>roundrect</style>
  1930.         <showName> <true /> </showName>
  1931.         <highlight> <false /> </highlight>
  1932.         <autoHighlight> <true /> </autoHighlight>
  1933.         <sharedHighlight> <true /> </sharedHighlight>
  1934.         <family>0</family>
  1935.         <titleWidth>0</titleWidth>
  1936.         <icon>0</icon>
  1937.         <textAlign>center</textAlign>
  1938.         <font>Geneva</font>
  1939.         <textSize>9</textSize>
  1940.         <textStyle>plain</textStyle>
  1941.         <name>Compact</name>
  1942.         <script>on mouseUp
  1943. set cursor to watch
  1944. put bg fld "DB File" into dbFile
  1945. put the ticks into timeA
  1946. BasicDBCompact dbFile
  1947. put the result into theResult
  1948. put the ticks into timeB
  1949. if theResult‚â†empty then answer theResult
  1950. put timeB-timeA into bg fld "Access Time"
  1951.  
  1952. pass mouseUp
  1953. end mouseUp</script>
  1954.     </part>
  1955.     <part>
  1956.         <id>7</id>
  1957.         <type>button</type>
  1958.         <visible> <true /> </visible>
  1959.         <reserved5> 0 </reserved5>
  1960.         <reserved4> 0 </reserved4>
  1961.         <reserved3> 0 </reserved3>
  1962.         <reserved2> 0 </reserved2>
  1963.         <reserved1> 0 </reserved1>
  1964.         <enabled> <false /> </enabled>
  1965.         <rect>
  1966.             <left>201</left>
  1967.             <top>310</top>
  1968.             <right>351</right>
  1969.             <bottom>342</bottom>
  1970.         </rect>
  1971.         <style>opaque</style>
  1972.         <showName> <false /> </showName>
  1973.         <highlight> <false /> </highlight>
  1974.         <autoHighlight> <false /> </autoHighlight>
  1975.         <sharedHighlight> <true /> </sharedHighlight>
  1976.         <family>0</family>
  1977.         <titleWidth>0</titleWidth>
  1978.         <icon>0</icon>
  1979.         <textAlign>center</textAlign>
  1980.         <font>Geneva</font>
  1981.         <textSize>9</textSize>
  1982.         <textStyle>plain</textStyle>
  1983.         <name>Mask</name>
  1984.         <script></script>
  1985.     </part>
  1986.     <content>
  1987.         <layer>background</layer>
  1988.         <id>3</id>
  1989.         <text>BasicDBCompact</text>
  1990.     </content>
  1991.     <content>
  1992.         <layer>background</layer>
  1993.         <id>16</id>
  1994.         <text><span class="style5">escription:</span><span class="style1">
  1995. The BasicDBCompact XCMD rebuilds the database file with only the active elements from the original, thereby removing any dead space from the file created by resizing or deleting items.
  1996.  
  1997. </span><span class="style5">Parameters:</span><span class="style1">
  1998. 1. Database file.
  1999.  
  2000. </span><span class="style5">Usage:</span><span class="style1">
  2001.                      BasicDBCompact theFile
  2002.  
  2003. </span><span class="style5">Notes:</span><span class="style1">
  2004.   BasicDBCompact uses the safe save method of file reconstitution recommended by Apple. It creates a new file in the Temporary Items folder and rebuilds the file. It then uses the FSpExchangeFiles call to swap the directory entries. If during any time the process is interrupted by media failure or power interruption, then the databse file will not be corrupted by this code.</span></text>
  2005.     </content>
  2006.     <name>BasicDBCompact</name>
  2007.     <script></script>
  2008. </card>
  2009.  
  2010.  
  2011. card_5734.xml
  2012. <?xml version="1.0" encoding="utf-8" ?>
  2013. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2014. <card>
  2015.     <id>5734</id>
  2016.     <filler1>0</filler1>
  2017.     <cantDelete> <false /> </cantDelete>
  2018.     <showPict> <true /> </showPict>
  2019.     <dontSearch> <false /> </dontSearch>
  2020.     <owner>5207</owner>
  2021.     <link rel="stylesheet" type="text/css" href="stylesheet_3204.css" />
  2022.     <part>
  2023.         <id>1</id>
  2024.         <type>button</type>
  2025.         <visible> <true /> </visible>
  2026.         <reserved5> 0 </reserved5>
  2027.         <reserved4> 0 </reserved4>
  2028.         <reserved3> 0 </reserved3>
  2029.         <reserved2> 0 </reserved2>
  2030.         <reserved1> 0 </reserved1>
  2031.         <enabled> <true /> </enabled>
  2032.         <rect>
  2033.             <left>3</left>
  2034.             <top>238</top>
  2035.             <right>83</right>
  2036.             <bottom>260</bottom>
  2037.         </rect>
  2038.         <style>roundrect</style>
  2039.         <showName> <true /> </showName>
  2040.         <highlight> <false /> </highlight>
  2041.         <autoHighlight> <true /> </autoHighlight>
  2042.         <sharedHighlight> <true /> </sharedHighlight>
  2043.         <family>0</family>
  2044.         <titleWidth>0</titleWidth>
  2045.         <icon>0</icon>
  2046.         <textAlign>center</textAlign>
  2047.         <font>Geneva</font>
  2048.         <textSize>9</textSize>
  2049.         <textStyle>plain</textStyle>
  2050.         <name>Set User Data</name>
  2051.         <script>on mouseUp
  2052. set cursor to watch
  2053. put bg fld "DB File" into dbFile
  2054. put cd fld "Global Long" into userLong
  2055. put cd fld "Global String" into userString
  2056.  
  2057. put the ticks into timeA
  2058. BasicDBSetUserData dbFile, userLong, userString
  2059. put the result into theResult
  2060. put the ticks into timeB
  2061. if theResult‚â†empty then answer theResult
  2062. put timeB-timeA into bg fld "Access Time"
  2063.  
  2064. pass mouseUp
  2065. end mouseUp</script>
  2066.     </part>
  2067.     <part>
  2068.         <id>2</id>
  2069.         <type>field</type>
  2070.         <visible> <true /> </visible>
  2071.         <dontWrap> <false /> </dontWrap>
  2072.         <dontSearch> <false /> </dontSearch>
  2073.         <sharedText> <false /> </sharedText>
  2074.         <fixedLineHeight> <true /> </fixedLineHeight>
  2075.         <autoTab> <false /> </autoTab>
  2076.         <lockText> <false /> </lockText>
  2077.         <rect>
  2078.             <left>164</left>
  2079.             <top>242</top>
  2080.             <right>496</right>
  2081.             <bottom>255</bottom>
  2082.         </rect>
  2083.         <style>rectangle</style>
  2084.         <autoSelect> <false /> </autoSelect>
  2085.         <showLines> <false /> </showLines>
  2086.         <wideMargins> <false /> </wideMargins>
  2087.         <multipleLines> <false /> </multipleLines>
  2088.         <reservedFamily> 0 </reservedFamily>
  2089.         <titleWidth>0</titleWidth>
  2090.         <icon>0</icon>
  2091.         <textAlign>left</textAlign>
  2092.         <font>Geneva</font>
  2093.         <textSize>9</textSize>
  2094.         <textStyle>plain</textStyle>
  2095.         <textHeight>12</textHeight>
  2096.         <name>Global String</name>
  2097.         <script></script>
  2098.     </part>
  2099.     <part>
  2100.         <id>3</id>
  2101.         <type>field</type>
  2102.         <visible> <true /> </visible>
  2103.         <dontWrap> <false /> </dontWrap>
  2104.         <dontSearch> <false /> </dontSearch>
  2105.         <sharedText> <false /> </sharedText>
  2106.         <fixedLineHeight> <true /> </fixedLineHeight>
  2107.         <autoTab> <false /> </autoTab>
  2108.         <lockText> <false /> </lockText>
  2109.         <rect>
  2110.             <left>164</left>
  2111.             <top>224</top>
  2112.             <right>261</right>
  2113.             <bottom>237</bottom>
  2114.         </rect>
  2115.         <style>rectangle</style>
  2116.         <autoSelect> <false /> </autoSelect>
  2117.         <showLines> <false /> </showLines>
  2118.         <wideMargins> <false /> </wideMargins>
  2119.         <multipleLines> <false /> </multipleLines>
  2120.         <reservedFamily> 0 </reservedFamily>
  2121.         <titleWidth>0</titleWidth>
  2122.         <icon>0</icon>
  2123.         <textAlign>left</textAlign>
  2124.         <font>Geneva</font>
  2125.         <textSize>9</textSize>
  2126.         <textStyle>plain</textStyle>
  2127.         <textHeight>12</textHeight>
  2128.         <name>Global Long</name>
  2129.         <script></script>
  2130.     </part>
  2131.     <part>
  2132.         <id>4</id>
  2133.         <type>button</type>
  2134.         <visible> <true /> </visible>
  2135.         <reserved5> 0 </reserved5>
  2136.         <reserved4> 0 </reserved4>
  2137.         <reserved3> 0 </reserved3>
  2138.         <reserved2> 0 </reserved2>
  2139.         <reserved1> 0 </reserved1>
  2140.         <enabled> <true /> </enabled>
  2141.         <rect>
  2142.             <left>105</left>
  2143.             <top>224</top>
  2144.             <right>164</right>
  2145.             <bottom>238</bottom>
  2146.         </rect>
  2147.         <style>transparent</style>
  2148.         <showName> <true /> </showName>
  2149.         <highlight> <false /> </highlight>
  2150.         <autoHighlight> <false /> </autoHighlight>
  2151.         <sharedHighlight> <true /> </sharedHighlight>
  2152.         <family>0</family>
  2153.         <titleWidth>0</titleWidth>
  2154.         <icon>0</icon>
  2155.         <textAlign>center</textAlign>
  2156.         <font>Geneva</font>
  2157.         <textSize>9</textSize>
  2158.         <textStyle>plain</textStyle>
  2159.         <name>Global Long:</name>
  2160.         <script></script>
  2161.     </part>
  2162.     <part>
  2163.         <id>5</id>
  2164.         <type>button</type>
  2165.         <visible> <true /> </visible>
  2166.         <reserved5> 0 </reserved5>
  2167.         <reserved4> 0 </reserved4>
  2168.         <reserved3> 0 </reserved3>
  2169.         <reserved2> 0 </reserved2>
  2170.         <reserved1> 0 </reserved1>
  2171.         <enabled> <true /> </enabled>
  2172.         <rect>
  2173.             <left>97</left>
  2174.             <top>240</top>
  2175.             <right>164</right>
  2176.             <bottom>254</bottom>
  2177.         </rect>
  2178.         <style>transparent</style>
  2179.         <showName> <true /> </showName>
  2180.         <highlight> <false /> </highlight>
  2181.         <autoHighlight> <false /> </autoHighlight>
  2182.         <sharedHighlight> <true /> </sharedHighlight>
  2183.         <family>0</family>
  2184.         <titleWidth>0</titleWidth>
  2185.         <icon>0</icon>
  2186.         <textAlign>center</textAlign>
  2187.         <font>Geneva</font>
  2188.         <textSize>9</textSize>
  2189.         <textStyle>plain</textStyle>
  2190.         <name>Global String:</name>
  2191.         <script></script>
  2192.     </part>
  2193.     <part>
  2194.         <id>6</id>
  2195.         <type>button</type>
  2196.         <visible> <true /> </visible>
  2197.         <reserved5> 0 </reserved5>
  2198.         <reserved4> 0 </reserved4>
  2199.         <reserved3> 0 </reserved3>
  2200.         <reserved2> 0 </reserved2>
  2201.         <reserved1> 0 </reserved1>
  2202.         <enabled> <false /> </enabled>
  2203.         <rect>
  2204.             <left>201</left>
  2205.             <top>310</top>
  2206.             <right>351</right>
  2207.             <bottom>342</bottom>
  2208.         </rect>
  2209.         <style>opaque</style>
  2210.         <showName> <false /> </showName>
  2211.         <highlight> <false /> </highlight>
  2212.         <autoHighlight> <false /> </autoHighlight>
  2213.         <sharedHighlight> <true /> </sharedHighlight>
  2214.         <family>0</family>
  2215.         <titleWidth>0</titleWidth>
  2216.         <icon>0</icon>
  2217.         <textAlign>center</textAlign>
  2218.         <font>Geneva</font>
  2219.         <textSize>9</textSize>
  2220.         <textStyle>plain</textStyle>
  2221.         <name>Mask</name>
  2222.         <script></script>
  2223.     </part>
  2224.     <content>
  2225.         <layer>background</layer>
  2226.         <id>3</id>
  2227.         <text>BasicDBSetUserData</text>
  2228.     </content>
  2229.     <content>
  2230.         <layer>background</layer>
  2231.         <id>16</id>
  2232.         <text><span class="style5">escription:</span><span class="style1">
  2233. The BasicDBSetUserData XCMD sets the user defined long integer and string values that are kept in the database's header file. You can use these two "global" fields for anything you'd like, a comment, a version number or whatever.
  2234.  
  2235. </span><span class="style5">Parameters:</span><span class="style1">
  2236. 1. Database file.
  2237. 2. Global Long Integer
  2238. 3. Global String (Max 127 characters)
  2239.  
  2240. </span><span class="style5">Usage:</span><span class="style1">
  2241.                      BasicDBSetUserData theFile, globalLong, globalString
  2242.  
  2243. </span><span class="style5">Notes:</span></text>
  2244.     </content>
  2245.     <name>BasicDBSetUserData</name>
  2246.     <script></script>
  2247. </card>
  2248.  
  2249.  
  2250. card_7185.xml
  2251. <?xml version="1.0" encoding="utf-8" ?>
  2252. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2253. <card>
  2254.     <id>7185</id>
  2255.     <filler1>0</filler1>
  2256.     <cantDelete> <false /> </cantDelete>
  2257.     <showPict> <true /> </showPict>
  2258.     <dontSearch> <false /> </dontSearch>
  2259.     <owner>5207</owner>
  2260.     <link rel="stylesheet" type="text/css" href="stylesheet_3204.css" />
  2261.     <part>
  2262.         <id>1</id>
  2263.         <type>button</type>
  2264.         <visible> <true /> </visible>
  2265.         <reserved5> 0 </reserved5>
  2266.         <reserved4> 0 </reserved4>
  2267.         <reserved3> 0 </reserved3>
  2268.         <reserved2> 0 </reserved2>
  2269.         <reserved1> 0 </reserved1>
  2270.         <enabled> <true /> </enabled>
  2271.         <rect>
  2272.             <left>3</left>
  2273.             <top>238</top>
  2274.             <right>83</right>
  2275.             <bottom>260</bottom>
  2276.         </rect>
  2277.         <style>roundrect</style>
  2278.         <showName> <true /> </showName>
  2279.         <highlight> <false /> </highlight>
  2280.         <autoHighlight> <true /> </autoHighlight>
  2281.         <sharedHighlight> <true /> </sharedHighlight>
  2282.         <family>0</family>
  2283.         <titleWidth>0</titleWidth>
  2284.         <icon>0</icon>
  2285.         <textAlign>center</textAlign>
  2286.         <font>Geneva</font>
  2287.         <textSize>9</textSize>
  2288.         <textStyle>plain</textStyle>
  2289.         <name>Get User Data</name>
  2290.         <script>on mouseUp
  2291. set cursor to watch
  2292. put bg fld "DB File" into dbFile
  2293.  
  2294. put the ticks into timeA
  2295. put BasicDBGetUserData(dbFile) into theData
  2296. put the result into theResult
  2297. put the ticks into timeB
  2298. put line 1 of theData into cd fld "Global Long"
  2299. delete line 1 of theData
  2300. put theData into cd fld "Global String"
  2301.  
  2302. put timeB-timeA into bg fld "Access Time"
  2303.  
  2304. pass mouseUp
  2305. end mouseUp</script>
  2306.     </part>
  2307.     <part>
  2308.         <id>2</id>
  2309.         <type>field</type>
  2310.         <visible> <true /> </visible>
  2311.         <dontWrap> <false /> </dontWrap>
  2312.         <dontSearch> <false /> </dontSearch>
  2313.         <sharedText> <false /> </sharedText>
  2314.         <fixedLineHeight> <true /> </fixedLineHeight>
  2315.         <autoTab> <false /> </autoTab>
  2316.         <lockText> <false /> </lockText>
  2317.         <rect>
  2318.             <left>164</left>
  2319.             <top>242</top>
  2320.             <right>496</right>
  2321.             <bottom>255</bottom>
  2322.         </rect>
  2323.         <style>rectangle</style>
  2324.         <autoSelect> <false /> </autoSelect>
  2325.         <showLines> <false /> </showLines>
  2326.         <wideMargins> <false /> </wideMargins>
  2327.         <multipleLines> <false /> </multipleLines>
  2328.         <reservedFamily> 0 </reservedFamily>
  2329.         <titleWidth>0</titleWidth>
  2330.         <icon>0</icon>
  2331.         <textAlign>left</textAlign>
  2332.         <font>Geneva</font>
  2333.         <textSize>9</textSize>
  2334.         <textStyle>plain</textStyle>
  2335.         <textHeight>12</textHeight>
  2336.         <name>Global String</name>
  2337.         <script></script>
  2338.     </part>
  2339.     <part>
  2340.         <id>3</id>
  2341.         <type>field</type>
  2342.         <visible> <true /> </visible>
  2343.         <dontWrap> <false /> </dontWrap>
  2344.         <dontSearch> <false /> </dontSearch>
  2345.         <sharedText> <false /> </sharedText>
  2346.         <fixedLineHeight> <true /> </fixedLineHeight>
  2347.         <autoTab> <false /> </autoTab>
  2348.         <lockText> <false /> </lockText>
  2349.         <rect>
  2350.             <left>164</left>
  2351.             <top>224</top>
  2352.             <right>261</right>
  2353.             <bottom>237</bottom>
  2354.         </rect>
  2355.         <style>rectangle</style>
  2356.         <autoSelect> <false /> </autoSelect>
  2357.         <showLines> <false /> </showLines>
  2358.         <wideMargins> <false /> </wideMargins>
  2359.         <multipleLines> <false /> </multipleLines>
  2360.         <reservedFamily> 0 </reservedFamily>
  2361.         <titleWidth>0</titleWidth>
  2362.         <icon>0</icon>
  2363.         <textAlign>left</textAlign>
  2364.         <font>Geneva</font>
  2365.         <textSize>9</textSize>
  2366.         <textStyle>plain</textStyle>
  2367.         <textHeight>12</textHeight>
  2368.         <name>Global Long</name>
  2369.         <script></script>
  2370.     </part>
  2371.     <part>
  2372.         <id>4</id>
  2373.         <type>button</type>
  2374.         <visible> <true /> </visible>
  2375.         <reserved5> 0 </reserved5>
  2376.         <reserved4> 0 </reserved4>
  2377.         <reserved3> 0 </reserved3>
  2378.         <reserved2> 0 </reserved2>
  2379.         <reserved1> 0 </reserved1>
  2380.         <enabled> <true /> </enabled>
  2381.         <rect>
  2382.             <left>105</left>
  2383.             <top>224</top>
  2384.             <right>164</right>
  2385.             <bottom>238</bottom>
  2386.         </rect>
  2387.         <style>transparent</style>
  2388.         <showName> <true /> </showName>
  2389.         <highlight> <false /> </highlight>
  2390.         <autoHighlight> <false /> </autoHighlight>
  2391.         <sharedHighlight> <true /> </sharedHighlight>
  2392.         <family>0</family>
  2393.         <titleWidth>0</titleWidth>
  2394.         <icon>0</icon>
  2395.         <textAlign>center</textAlign>
  2396.         <font>Geneva</font>
  2397.         <textSize>9</textSize>
  2398.         <textStyle>plain</textStyle>
  2399.         <name>Global Long:</name>
  2400.         <script></script>
  2401.     </part>
  2402.     <part>
  2403.         <id>5</id>
  2404.         <type>button</type>
  2405.         <visible> <true /> </visible>
  2406.         <reserved5> 0 </reserved5>
  2407.         <reserved4> 0 </reserved4>
  2408.         <reserved3> 0 </reserved3>
  2409.         <reserved2> 0 </reserved2>
  2410.         <reserved1> 0 </reserved1>
  2411.         <enabled> <true /> </enabled>
  2412.         <rect>
  2413.             <left>97</left>
  2414.             <top>240</top>
  2415.             <right>164</right>
  2416.             <bottom>254</bottom>
  2417.         </rect>
  2418.         <style>transparent</style>
  2419.         <showName> <true /> </showName>
  2420.         <highlight> <false /> </highlight>
  2421.         <autoHighlight> <false /> </autoHighlight>
  2422.         <sharedHighlight> <true /> </sharedHighlight>
  2423.         <family>0</family>
  2424.         <titleWidth>0</titleWidth>
  2425.         <icon>0</icon>
  2426.         <textAlign>center</textAlign>
  2427.         <font>Geneva</font>
  2428.         <textSize>9</textSize>
  2429.         <textStyle>plain</textStyle>
  2430.         <name>Global String:</name>
  2431.         <script></script>
  2432.     </part>
  2433.     <part>
  2434.         <id>6</id>
  2435.         <type>button</type>
  2436.         <visible> <true /> </visible>
  2437.         <reserved5> 0 </reserved5>
  2438.         <reserved4> 0 </reserved4>
  2439.         <reserved3> 0 </reserved3>
  2440.         <reserved2> 0 </reserved2>
  2441.         <reserved1> 0 </reserved1>
  2442.         <enabled> <false /> </enabled>
  2443.         <rect>
  2444.             <left>201</left>
  2445.             <top>310</top>
  2446.             <right>351</right>
  2447.             <bottom>342</bottom>
  2448.         </rect>
  2449.         <style>opaque</style>
  2450.         <showName> <false /> </showName>
  2451.         <highlight> <false /> </highlight>
  2452.         <autoHighlight> <false /> </autoHighlight>
  2453.         <sharedHighlight> <true /> </sharedHighlight>
  2454.         <family>0</family>
  2455.         <titleWidth>0</titleWidth>
  2456.         <icon>0</icon>
  2457.         <textAlign>center</textAlign>
  2458.         <font>Geneva</font>
  2459.         <textSize>9</textSize>
  2460.         <textStyle>plain</textStyle>
  2461.         <name>Mask</name>
  2462.         <script></script>
  2463.     </part>
  2464.     <content>
  2465.         <layer>background</layer>
  2466.         <id>3</id>
  2467.         <text>BasicDBGetUserData</text>
  2468.     </content>
  2469.     <content>
  2470.         <layer>background</layer>
  2471.         <id>16</id>
  2472.         <text><span class="style5">escription:</span><span class="style1">
  2473. The BasicDBGetUserData XFCN returns the user defined long integer and string values that are kept in the database's header file.
  2474.  
  2475. </span><span class="style5">Parameters:</span><span class="style1">
  2476. 1. Database file.
  2477.  
  2478. </span><span class="style5">Usage:</span><span class="style1">
  2479.                      BasicDBGetUserData(theFile)
  2480.  
  2481. </span><span class="style5">Notes:
  2482. </span><span class="style1">  The user long is returned on line 1 of the result and the user string starts on line 2. (The string may have return characters in it, so...)</span></text>
  2483.     </content>
  2484.     <name>BasicDBGetUserData</name>
  2485.     <script></script>
  2486. </card>
  2487.  
  2488.  
  2489. card_7445.xml
  2490. <?xml version="1.0" encoding="utf-8" ?>
  2491. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2492. <card>
  2493.     <id>7445</id>
  2494.     <filler1>0</filler1>
  2495.     <cantDelete> <false /> </cantDelete>
  2496.     <showPict> <true /> </showPict>
  2497.     <dontSearch> <false /> </dontSearch>
  2498.     <owner>5207</owner>
  2499.     <link rel="stylesheet" type="text/css" href="stylesheet_3204.css" />
  2500.     <part>
  2501.         <id>1</id>
  2502.         <type>button</type>
  2503.         <visible> <true /> </visible>
  2504.         <reserved5> 0 </reserved5>
  2505.         <reserved4> 0 </reserved4>
  2506.         <reserved3> 0 </reserved3>
  2507.         <reserved2> 0 </reserved2>
  2508.         <reserved1> 0 </reserved1>
  2509.         <enabled> <true /> </enabled>
  2510.         <rect>
  2511.             <left>3</left>
  2512.             <top>238</top>
  2513.             <right>83</right>
  2514.             <bottom>260</bottom>
  2515.         </rect>
  2516.         <style>roundrect</style>
  2517.         <showName> <true /> </showName>
  2518.         <highlight> <false /> </highlight>
  2519.         <autoHighlight> <true /> </autoHighlight>
  2520.         <sharedHighlight> <true /> </sharedHighlight>
  2521.         <family>0</family>
  2522.         <titleWidth>0</titleWidth>
  2523.         <icon>0</icon>
  2524.         <textAlign>center</textAlign>
  2525.         <font>Geneva</font>
  2526.         <textSize>9</textSize>
  2527.         <textStyle>plain</textStyle>
  2528.         <name>Verify Database</name>
  2529.         <script>on mouseUp
  2530. set cursor to watch
  2531. put bg fld "DB File" into dbFile
  2532.  
  2533. put the ticks into timeA
  2534. put BasicDBVerify(dbFile) into dbStatus
  2535. put the result into theResult
  2536. put the ticks into timeB
  2537. put timeB-timeA into bg fld "Access Time"
  2538. answer dbStatus
  2539.  
  2540. pass mouseUp
  2541. end mouseUp</script>
  2542.     </part>
  2543.     <part>
  2544.         <id>6</id>
  2545.         <type>button</type>
  2546.         <visible> <true /> </visible>
  2547.         <reserved5> 0 </reserved5>
  2548.         <reserved4> 0 </reserved4>
  2549.         <reserved3> 0 </reserved3>
  2550.         <reserved2> 0 </reserved2>
  2551.         <reserved1> 0 </reserved1>
  2552.         <enabled> <false /> </enabled>
  2553.         <rect>
  2554.             <left>201</left>
  2555.             <top>310</top>
  2556.             <right>351</right>
  2557.             <bottom>342</bottom>
  2558.         </rect>
  2559.         <style>opaque</style>
  2560.         <showName> <false /> </showName>
  2561.         <highlight> <false /> </highlight>
  2562.         <autoHighlight> <false /> </autoHighlight>
  2563.         <sharedHighlight> <true /> </sharedHighlight>
  2564.         <family>0</family>
  2565.         <titleWidth>0</titleWidth>
  2566.         <icon>0</icon>
  2567.         <textAlign>center</textAlign>
  2568.         <font>Geneva</font>
  2569.         <textSize>9</textSize>
  2570.         <textStyle>plain</textStyle>
  2571.         <name>Mask</name>
  2572.         <script></script>
  2573.     </part>
  2574.     <content>
  2575.         <layer>background</layer>
  2576.         <id>3</id>
  2577.         <text>BasicDBVerify</text>
  2578.     </content>
  2579.     <content>
  2580.         <layer>background</layer>
  2581.         <id>16</id>
  2582.         <text><span class="style5">escription:</span><span class="style1">
  2583. The BasicDBVerify XFCN validates the integrity of the database file. It returns a status message.
  2584.  
  2585. </span><span class="style5">Parameters:</span><span class="style1">
  2586. 1. Database file.
  2587.  
  2588. </span><span class="style5">Usage:</span><span class="style1">
  2589.                      BasicDBVerify(theFile)
  2590.  
  2591. </span><span class="style5">Notes:</span></text>
  2592.     </content>
  2593.     <name>BasicDBVerify</name>
  2594.     <script></script>
  2595. </card>
  2596.  
  2597.  
  2598.